Skip to content

Commit

Permalink
fix(crypto): fix error message of bytesToMultibase (#3203)
Browse files Browse the repository at this point in the history
It was printing the `Uint8Array` instead of the encoding name.
  • Loading branch information
tesaguri authored Dec 9, 2024
1 parent 45e7ed5 commit 57c58f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/crypto/src/multibase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ export const bytesToMultibase = (
case 'base64urlpad':
return 'U' + uint8arrays.toString(mb, encoding)
default:
throw new Error(`Unsupported multibase: :${mb}`)
throw new Error(`Unsupported multibase: :${encoding}`)
}
}

0 comments on commit 57c58f6

Please sign in to comment.