Skip to content

Commit 6f1d4b1

Browse files
[SDK] Handle tx with value on engineAccount (#7004)
1 parent 7ede361 commit 6f1d4b1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/tough-rules-heal.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Handle tx with value on engineAccount

packages/thirdweb/src/wallets/engine/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,13 @@ export function engineAccount(options: EngineAccountOptions): Account {
102102
// engine wants a hex string here so we serialize it
103103
data: transaction.data || "0x",
104104
// value is always required
105-
value: toHex(transaction.value ?? 0n),
105+
value: transaction.value ?? 0n,
106106
// optional authorization list
107107
authorizationList: transaction.authorizationList,
108108

109109
txOverrides: {
110110
gas: transaction.gas,
111+
value: transaction.value,
111112
},
112113
};
113114

0 commit comments

Comments
 (0)