We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ede361 commit 6f1d4b1Copy full SHA for 6f1d4b1
.changeset/tough-rules-heal.md
@@ -0,0 +1,5 @@
1
+---
2
+"thirdweb": patch
3
4
+
5
+Handle tx with value on engineAccount
packages/thirdweb/src/wallets/engine/index.ts
@@ -102,12 +102,13 @@ export function engineAccount(options: EngineAccountOptions): Account {
102
// engine wants a hex string here so we serialize it
103
data: transaction.data || "0x",
104
// value is always required
105
- value: toHex(transaction.value ?? 0n),
+ value: transaction.value ?? 0n,
106
// optional authorization list
107
authorizationList: transaction.authorizationList,
108
109
txOverrides: {
110
gas: transaction.gas,
111
+ value: transaction.value,
112
},
113
};
114
0 commit comments