Skip to content

Commit

Permalink
Fix config in etherman instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
vcastellm committed Jul 25, 2024
1 parent 451f4fc commit d2f61a9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,14 @@ func runMigrations(c db.Config, name string) {
}

func newEtherman(c config.Config) (*etherman.Client, error) {
config := etherman.Config{
URL: c.Aggregator.EthTxManager.Etherman.URL,
}
return etherman.NewClient(config, c.NetworkConfig.L1Config)
return etherman.NewClient(etherman.Config{
EthermanConfig: ethtxman.Config{
URL: c.Aggregator.EthTxManager.Etherman.URL,
MultiGasProvider: c.Aggregator.EthTxManager.Etherman.MultiGasProvider,
L1ChainID: c.Aggregator.EthTxManager.Etherman.L1ChainID,
HTTPHeaders: c.Aggregator.EthTxManager.Etherman.HTTPHeaders,
},
}, c.NetworkConfig.L1Config)
}

func logVersion() {
Expand Down

0 comments on commit d2f61a9

Please sign in to comment.