Skip to content

Commit 04030cb

Browse files
committed
fix: typo in template literal
1 parent 66682df commit 04030cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export const createV1 = (code, digest, config) => create(1, code, digest, config
292292
export const parse = (source, config) => {
293293
const { base, base58btc } = config
294294
const [name, bytes] = source[0] === 'Q'
295-
? [BASE_58_BTC, base58btc.decoder.decode(`${BASE_58_BTC_PREFIX}{source}`)]
295+
? [BASE_58_BTC, base58btc.decoder.decode(`${BASE_58_BTC_PREFIX}${source}`)]
296296
: [base.encoder.name, base.decoder.decode(source)]
297297

298298
const cid = decode(bytes, config)

0 commit comments

Comments
 (0)