Skip to content

Commit ead1007

Browse files
committed
fix: enclave wallet signing
1 parent d7f161b commit ead1007

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/thirdweb/src/wallets/in-app/core/wallet/enclave-wallet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ export class EnclaveWallet implements IWebWallet {
139139
chain: getCachedChain(tx.chainId),
140140
});
141141
const transaction: Record<string, Hex | number | undefined> = {
142-
to: (tx.to as Hex) ?? undefined,
143-
data: tx.data ? toHex(tx.data) : undefined,
142+
to: tx.to ? getAddress(tx.to) : undefined,
143+
data: tx.data,
144144
value: tx.value ? toHex(tx.value) : undefined,
145145
gas: tx.gas ? toHex(tx.gas + tx.gas / BigInt(10)) : undefined, // Add a 10% buffer to gas
146146
nonce: tx.nonce

0 commit comments

Comments
 (0)