Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
fix: ipfs connection test (#18)
Browse files Browse the repository at this point in the history
`ipfs.get` is not consistently available across `js-ipfs` and `js-ipfs-api`. Use `ipfs.files.get` for compatability.
  • Loading branch information
fsdiogo authored and olizilla committed Nov 9, 2018
1 parent d42ec33 commit 2d31686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const defaultOptions = {
defaultApiAddress: '/ip4/127.0.0.1/tcp/5001',
ipfsConnectionTest: (ipfs) => {
// ipfs connection is working if can we fetch the empty directtory.
return ipfs.get('QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn')
return ipfs.files.get('QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn')
}
}

Expand Down

0 comments on commit 2d31686

Please sign in to comment.