diff --git a/.changeset/forty-turtles-do.md b/.changeset/forty-turtles-do.md new file mode 100644 index 00000000000..548f58b8424 --- /dev/null +++ b/.changeset/forty-turtles-do.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +fix ecosystem signing with data error diff --git a/packages/thirdweb/src/wallets/in-app/core/wallet/enclave-wallet.ts b/packages/thirdweb/src/wallets/in-app/core/wallet/enclave-wallet.ts index 8f764c68c3e..ebfa8519a2c 100644 --- a/packages/thirdweb/src/wallets/in-app/core/wallet/enclave-wallet.ts +++ b/packages/thirdweb/src/wallets/in-app/core/wallet/enclave-wallet.ts @@ -139,8 +139,8 @@ export class EnclaveWallet implements IWebWallet { chain: getCachedChain(tx.chainId), }); const transaction: Record = { - to: (tx.to as Hex) ?? undefined, - data: tx.data ? toHex(tx.data) : undefined, + to: tx.to ? getAddress(tx.to) : undefined, + data: tx.data, value: tx.value ? toHex(tx.value) : undefined, gas: tx.gas ? toHex(tx.gas + tx.gas / BigInt(10)) : undefined, // Add a 10% buffer to gas nonce: tx.nonce