Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRalee committed Nov 29, 2024
1 parent 594206a commit 762e938
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export class PrivateKeyWallet
try {
const signature = await pk.signHashed(Buffer.from(toUtf8(data), 'utf-8'))

return signature
return `0x${Buffer.from(signature).toString('base64')}`
} catch (e: unknown) {
throw new MetamaskException(new Error((e as any).message), {
code: UnspecifiedErrorCode,
Expand Down

0 comments on commit 762e938

Please sign in to comment.