Skip to content

Commit

Permalink
cr fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rachit77 committed Jan 16, 2025
1 parent 9634038 commit 48933ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions aggoracle/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ type Config struct {
EVMSender chaingersender.EVMConfig `mapstructure:"EVMSender"`
}

// ApplyL2ChainID copies L2ChainID to relevant config fields
// ApplyL2ChainID copies L2ChainID to the L1ChainID in the Etherman config
func (c *Config) ApplyL2ChainID(l2ChainID uint64) {
// Ethereman needs to have the L2ChainID in the L1ChainID field for aggOacle
c.EVMSender.EthTxManager.Etherman.L1ChainID = l2ChainID
c.EVMSender.ChainIDL2 = l2ChainID
}

0 comments on commit 48933ac

Please sign in to comment.