Skip to content

Commit

Permalink
fix: use cidVersion option (ipfs#484)
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
  • Loading branch information
alanshaw committed May 31, 2019
1 parent b60fe33 commit e00eb4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dht/provide.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module.exports = (createCommon, options) => {
})

it('should provide a CIDv1', (done) => {
ipfs.add(Buffer.from('test'), { 'cid-version': 1 }, (err, res) => {
ipfs.add(Buffer.from('test'), { cidVersion: 1 }, (err, res) => {
if (err) return done(err)

const cid = new CID(res[0].hash)
Expand Down

0 comments on commit e00eb4a

Please sign in to comment.