Skip to content

Commit 66c4d37

Browse files
[SDK] Fix transaction parameter ordering in injected wallet
1 parent db145b5 commit 66c4d37

File tree

1 file changed

+5
-4
lines changed
  • packages/thirdweb/src/wallets/injected

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,16 +201,17 @@ function createAccount({
201201
};
202202
const params = [
203203
{
204-
...tx,
205-
authorizationList: tx.authorizationList
206-
? ox__Authorization.toRpcList(tx.authorizationList)
207-
: undefined,
208204
...gasFees,
209205
from: this.address,
210206
gas: tx.gas ? numberToHex(tx.gas) : undefined,
211207
nonce: tx.nonce ? numberToHex(tx.nonce) : undefined,
212208
to: tx.to ? getAddress(tx.to) : undefined,
209+
data: tx.data,
213210
value: tx.value ? numberToHex(tx.value) : undefined,
211+
authorizationList: tx.authorizationList
212+
? ox__Authorization.toRpcList(tx.authorizationList)
213+
: undefined,
214+
accessList: tx.accessList,
214215
...tx.eip712,
215216
},
216217
];

0 commit comments

Comments
 (0)