Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit a5ec30e

Browse files
committed
fix: encode multihashes with base64 instead of b58
1 parent 24e6ad3 commit a5ec30e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/components/pin/pin-manager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function invalidPinTypeErr (type) {
2222
}
2323

2424
function toKey (cid) {
25-
return '/' + bs58.encode(cid.multihash)
25+
return '/' + cid.multihash.toString('base64')
2626
}
2727

2828
const PinTypes = {

0 commit comments

Comments
 (0)