From 6d77fd43e382445098a1938fcc491c7b2764afa2 Mon Sep 17 00:00:00 2001 From: kumavis Date: Sat, 6 May 2017 15:11:46 -0700 Subject: [PATCH] block.get - use cid.toBaseEncodedString --- src/api/block.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {