Skip to content

Commit

Permalink
fix panic etherman (0xPolygonHermez#3133)
Browse files Browse the repository at this point in the history
  • Loading branch information
ARR552 authored Jan 24, 2024
1 parent 1962ca1 commit c3dddf7
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions etherman/etherman.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit c3dddf7

Please sign in to comment.