Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 6b83215

Browse files
kumavisdaviddias
authored andcommitted
block.get - use cid.toBaseEncodedString (#550)
1 parent c7ef39a commit 6b83215

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/block.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ module.exports = (send) => {
1919
try {
2020
if (CID.isCID(args)) {
2121
cid = args
22-
args = multihash.toB58String(args.multihash)
22+
args = cid.toBaseEncodedString()
2323
} else if (Buffer.isBuffer(args)) {
2424
cid = new CID(args)
25-
args = multihash.toB58String(args)
25+
args = cid.toBaseEncodedString()
2626
} else if (typeof args === 'string') {
2727
cid = new CID(args)
2828
} else {

0 commit comments

Comments
 (0)