@@ -17,10 +17,10 @@ async function main() {
1717 const modularSdk = generateModularSDKInstance ( process . env . WALLET_PRIVATE_KEY as string , chainId , bundlerApiKey ) ;
1818
1919 const networkConfig : NetworkConfig = Networks [ chainId ] ;
20+ const V1_HOOK_MULTIPLEXER_ADDRESS = '0xDcA918dd23456d321282DF9507F6C09A50522136' ;
2021 const HOOK_MULTIPLEXER_ADDRESS = networkConfig . contracts . hookMultiPlexer as Hex ;
21- const NEW_HOOK_MULTIPLEXER_ADDRESS = '0xDDcDA78c9BE2d2Ca1b63F8a47f44B6337b8fA4B8' as Hex ;
22- const RESOURCE_LOCK_VALIDATOR_ADDRESS = '0xa3789284adB928258DA2cC674090AC5c69D22183' as Hex ;
23- const CREDIBLE_ACCOUNT_MODULE_ADDRESS = '0xA11CFb410f1a98d0c98439cEeDc9d799336d063f' as Hex ;
22+ const RESOURCE_LOCK_VALIDATOR_ADDRESS = networkConfig . contracts . resourceLockValidator as Hex ;
23+ const CREDIBLE_ACCOUNT_MODULE_ADDRESS = networkConfig . contracts . credibleAccountModule as Hex ;
2424
2525 // Get counterfactual of ModularEtherspotWallet...
2626 const address : Hex = ( await modularSdk . getCounterFactualAddress ( ) ) as Hex ;
@@ -39,11 +39,11 @@ async function main() {
3939 try {
4040 // Install the complete Pulse ecosystem using the new Pulse class
4141 const uoHash = await modularSdk . pulse . installPulseModules ( {
42- hookMultiplexerAddress : NEW_HOOK_MULTIPLEXER_ADDRESS ,
42+ hookMultiplexerAddress : HOOK_MULTIPLEXER_ADDRESS ,
4343 credibleAccountModuleAddress : CREDIBLE_ACCOUNT_MODULE_ADDRESS ,
4444 resourceLockValidatorAddress : RESOURCE_LOCK_VALIDATOR_ADDRESS ,
4545 uninstallOldHookMultiplexer : false ,
46- // oldHookMultiplexerAddress: HOOK_MULTIPLEXER_ADDRESS ,
46+ // oldHookMultiplexerAddress: V1_HOOK_MULTIPLEXER_ADDRESS ,
4747 } ) ;
4848
4949 console . log ( `PulseSetup UserOpHash: ${ uoHash } ` ) ;
@@ -63,7 +63,7 @@ async function main() {
6363
6464 // Verify installation
6565 const installationStatus = await modularSdk . pulse . isPulseModulesInstalled ( {
66- hookMultiplexerAddress : NEW_HOOK_MULTIPLEXER_ADDRESS ,
66+ hookMultiplexerAddress : HOOK_MULTIPLEXER_ADDRESS ,
6767 credibleAccountModuleAddress : CREDIBLE_ACCOUNT_MODULE_ADDRESS ,
6868 resourceLockValidatorAddress : RESOURCE_LOCK_VALIDATOR_ADDRESS ,
6969 } ) ;
0 commit comments