diff --git a/packages/wallets/wallet-private-key/src/strategy/strategy.ts b/packages/wallets/wallet-private-key/src/strategy/strategy.ts index 15b179868..993ce9210 100644 --- a/packages/wallets/wallet-private-key/src/strategy/strategy.ts +++ b/packages/wallets/wallet-private-key/src/strategy/strategy.ts @@ -202,8 +202,7 @@ export class PrivateKeyWallet } try { - const bufferUTF = Buffer.from(toUtf8(data), 'utf-8') - const signature = await pk.signHashed(bufferUTF) + const signature = await pk.signHashed(Buffer.from(toUtf8(data), 'utf-8')) return signature } catch (e: unknown) {