From 6f61c92da7b07c301f487be5ec8b755cec1b9e58 Mon Sep 17 00:00:00 2001 From: Alex Forshtat Date: Tue, 21 Jan 2025 13:02:59 +0100 Subject: [PATCH] Configure AA_SENDER_CREATOR for ERC7562Parser --- packages/bundler/src/modules/initServer.ts | 3 ++- packages/validation-manager/src/ValidationManagerRIP7560.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/bundler/src/modules/initServer.ts b/packages/bundler/src/modules/initServer.ts index a40ac3fb..b15761b1 100644 --- a/packages/bundler/src/modules/initServer.ts +++ b/packages/bundler/src/modules/initServer.ts @@ -10,6 +10,7 @@ import { MempoolManager } from './MempoolManager' import { BundleManager } from './BundleManager' import { AA_ENTRY_POINT, + AA_SENDER_CREATOR, AA_STAKE_MANAGER, IValidationManager, ValidationManager, @@ -47,7 +48,7 @@ export function initServer (config: BundlerConfig, signer: Signer): [ExecutionMa bundleManager = new BundleManager(entryPoint, entryPoint.provider as JsonRpcProvider, signer, eventsManager, mempoolManager, validationManager, reputationManager, config.beneficiary, parseEther(config.minBalance), config.maxBundleGas, config.conditionalRpc) } else { - const erc7562Parser = new ERC7562Parser(AA_ENTRY_POINT, config.senderCreator, true) + const erc7562Parser = new ERC7562Parser(AA_ENTRY_POINT, AA_SENDER_CREATOR, true) const stakeManager = IRip7560StakeManager__factory.connect(AA_STAKE_MANAGER, signer) validationManager = new ValidationManagerRIP7560(stakeManager, entryPoint.provider as JsonRpcProvider, erc7562Parser, config.unsafe) bundleManager = new BundleManagerRIP7560(entryPoint.provider as JsonRpcProvider, signer, eventsManager, mempoolManager, validationManager, reputationManager, diff --git a/packages/validation-manager/src/ValidationManagerRIP7560.ts b/packages/validation-manager/src/ValidationManagerRIP7560.ts index 1367637a..4e6015a6 100644 --- a/packages/validation-manager/src/ValidationManagerRIP7560.ts +++ b/packages/validation-manager/src/ValidationManagerRIP7560.ts @@ -18,6 +18,7 @@ import { eth_traceRip7560Validation } from './GethTracer' import { ERC7562Parser } from './ERC7562Parser' export const AA_ENTRY_POINT = '0x0000000000000000000000000000000000007560' +export const AA_SENDER_CREATOR = '0x00000000000000000000000000000000ffff7560' export const AA_STAKE_MANAGER = '0x570Aa568b6cf62ff08c6C3a3b3DB1a0438E871Fb' export class ValidationManagerRIP7560 implements IValidationManager {