Skip to content

Commit

Permalink
add checks for v0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mouseless-eth committed Oct 9, 2024
1 parent ba373d4 commit 2d84918
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/executor/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ export class Executor {

async sendHandleOpsTransaction(
userOps: PackedUserOperation[],
isUserOpVersion06: boolean,
entryPoint: Address,
opts:
| {
Expand All @@ -542,7 +543,7 @@ export class Executor {
const request = await this.walletClient.prepareTransactionRequest({
to: entryPoint,
data: encodeFunctionData({
abi: EntryPointV07Abi,
abi: isUserOpVersion06 ? EntryPointV06Abi : EntryPointV07Abi,
functionName: "handleOps",
args: [userOps, opts.account.address]
}),
Expand Down Expand Up @@ -778,6 +779,7 @@ export class Executor {

transactionHash = await this.sendHandleOpsTransaction(
userOps,
isUserOpVersion06,
entryPoint,
opts
)
Expand Down

0 comments on commit 2d84918

Please sign in to comment.