Skip to content

Commit

Permalink
Addressed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
simsonraj committed Jun 12, 2024
1 parent 5011275 commit 80a7136
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions core/chains/evm/gas/rollups/zkSync_l1_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,26 +61,17 @@ const (
)

func NewZkSyncL1GasOracle(lggr logger.Logger, ethClient l1OracleClient) *zkSyncL1Oracle {
var systemContextAddress, gasPerPubdataMethod, gasPerPubdataSelector, l2GasPriceMethod, l2GasPriceSelector string

systemContextAddress = SystemContextAddress
gasPerPubdataMethod = SystemContext_gasPerPubdataByteMethod
gasPerPubdataSelector = ZksyncGasInfo_getGasPerPubdataByteL2

l2GasPriceMethod = SystemContext_gasPriceMethod
l2GasPriceSelector = ZksyncGasInfo_getGasPriceL2

return &zkSyncL1Oracle{
client: ethClient,
pollPeriod: PollPeriod,
logger: logger.Sugared(logger.Named(lggr, "L1GasOracle(zkSync)")),
chainType: chaintype.ChainZkSync,

systemContextAddress: systemContextAddress,
gasPerPubdataMethod: gasPerPubdataMethod,
gasPerPubdataSelector: gasPerPubdataSelector,
l2GasPriceMethod: l2GasPriceMethod,
l2GasPriceSelector: l2GasPriceSelector,
systemContextAddress: SystemContextAddress,
gasPerPubdataMethod: SystemContext_gasPerPubdataByteMethod,
gasPerPubdataSelector: ZksyncGasInfo_getGasPerPubdataByteL2,
l2GasPriceMethod: SystemContext_gasPriceMethod,
l2GasPriceSelector: ZksyncGasInfo_getGasPriceL2,

chInitialised: make(chan struct{}),
chStop: make(chan struct{}),
Expand Down

0 comments on commit 80a7136

Please sign in to comment.