diff --git a/src/api/block.js b/src/api/block.js index 965f423d8..910fed3db 100644 --- a/src/api/block.js +++ b/src/api/block.js @@ -19,10 +19,10 @@ module.exports = (send) => { try { if (CID.isCID(args)) { cid = args - args = multihash.toB58String(args.multihash) + args = cid.toBaseEncodedString() } else if (Buffer.isBuffer(args)) { cid = new CID(args) - args = multihash.toB58String(args) + args = cid.toBaseEncodedString() } else if (typeof args === 'string') { cid = new CID(args) } else {