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

Commit a39770e

Browse files
vasco-santosAlan Shaw
authored and
Alan Shaw
committed
fix: ipns datastore key (#1741)
1 parent 548504d commit a39770e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/ipns/routing/utils.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
const multibase = require('multibase')
44

55
module.exports.encodeBase32 = (buf) => {
6-
return multibase.encode('base32', buf).slice(1) // slice off multibase codec
6+
const m = multibase.encode('base32', buf).slice(1) // slice off multibase codec
7+
8+
return m.toString().toUpperCase() // should be uppercase for interop with go
79
}

0 commit comments

Comments
 (0)