From bd85af9bd282ea33ac44d4d4b181349b18c46957 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Fri, 31 May 2019 09:42:14 +0100 Subject: [PATCH] fix: use cidVersion option License: MIT Signed-off-by: Alan Shaw --- src/dht/provide.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dht/provide.js b/src/dht/provide.js index e2abc97d0..915f9f266 100644 --- a/src/dht/provide.js +++ b/src/dht/provide.js @@ -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)