Skip to content

Commit

Permalink
chore: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Sep 12, 2024
1 parent 9910e85 commit 9697ac6
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/executor/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import {
NonceTooLowError,
encodeFunctionData,
getContract,
toHex,
type Account,
type Chain,
type PublicClient,
Expand Down Expand Up @@ -703,7 +704,14 @@ export class Executor {
? {
...opts,
...newGasOptions,
authorizationList
authorizationList: authorizationList.map((auth) => ({
address: auth.contractAddress,
chainId: toHex(auth.chainId),
nonce: toHex(auth.nonce),
yParity: auth.yParity,
r: auth.r,
s: auth.s,
}))
}
: {
...opts,
Expand Down Expand Up @@ -1017,7 +1025,14 @@ export class Executor {
? {
...params,
...newGasOptions,
authorizationList
authorizationList: authorizationList.map((auth) => ({
address: auth.contractAddress,
chainId: toHex(auth.chainId),
nonce: toHex(auth.nonce),
yParity: auth.yParity,
r: auth.r,
s: auth.s,
}))
}
: {
...params,
Expand Down

0 comments on commit 9697ac6

Please sign in to comment.