diff --git a/etherman/etherman.go b/etherman/etherman.go index 95e99820df..c605b53ad6 100644 --- a/etherman/etherman.go +++ b/etherman/etherman.go @@ -215,6 +215,10 @@ func NewClient(cfg Config, l1Config L1Config) (*Client, error) { if err != nil { return nil, err } + oldGlobalExitRoot, err := oldpolygonzkevmglobalexitroot.NewOldpolygonzkevmglobalexitroot(l1Config.GlobalExitRootManagerAddr, ethClient) + if err != nil { + return nil, err + } pol, err := pol.NewPol(l1Config.PolAddr, ethClient) if err != nil { return nil, err @@ -241,14 +245,15 @@ func NewClient(cfg Config, l1Config L1Config) (*Client, error) { log.Debug("rollupID: ", rollupID) return &Client{ - EthClient: ethClient, - ZkEVM: zkevm, - OldZkEVM: oldZkevm, - RollupManager: rollupManager, - Pol: pol, - GlobalExitRootManager: globalExitRoot, - SCAddresses: scAddresses, - RollupID: rollupID, + EthClient: ethClient, + ZkEVM: zkevm, + OldZkEVM: oldZkevm, + RollupManager: rollupManager, + Pol: pol, + GlobalExitRootManager: globalExitRoot, + OldGlobalExitRootManager: oldGlobalExitRoot, + SCAddresses: scAddresses, + RollupID: rollupID, GasProviders: externalGasProviders{ MultiGasProvider: cfg.MultiGasProvider, Providers: gProviders,