Skip to content

Commit

Permalink
fix: btc sign message
Browse files Browse the repository at this point in the history
  • Loading branch information
AricRedemption committed Apr 26, 2024
1 parent 6c723d4 commit 3a378ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/actions/btc/sign-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { Chain } from '@metalet/utxo-wallet-service'

export async function process(message: string, encoding?: BufferEncoding): Promise<string> {
const wallet = await getCurrentWallet(Chain.BTC)
return wallet.signMessage(message, encoding)
return wallet.signMessage(message, encoding ?? 'base64')
}

0 comments on commit 3a378ec

Please sign in to comment.