Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ARR552 committed Jan 30, 2024
1 parent 3265c80 commit b54740d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etherman/etherman.go
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ func (etherMan *Client) GetLatestBatchNumber() (uint64, error) {
var latestBatchNum uint64
rollupData, err := etherMan.RollupManager.RollupIDToRollupData(&bind.CallOpts{Pending: false}, etherMan.RollupID)
if err != nil {
log.Warn("error getting latestBatchNum from rollupManager. Trying old zkevm smc... Error: ", err)
log.Debug("error getting latestBatchNum from rollupManager. Trying old zkevm smc... Error: ", err)
latestBatchNum, err = etherMan.OldZkEVM.LastBatchSequenced(&bind.CallOpts{Pending: false})
if err != nil {
return latestBatchNum, err
Expand Down Expand Up @@ -1613,7 +1613,7 @@ func (etherMan *Client) GetLatestVerifiedBatchNum() (uint64, error) {
var lastVerifiedBatchNum uint64
rollupData, err := etherMan.RollupManager.RollupIDToRollupData(&bind.CallOpts{Pending: false}, etherMan.RollupID)
if err != nil {
log.Warn("error getting lastVerifiedBatchNum from rollupManager. Trying old zkevm smc... Error: ", err)
log.Debug("error getting lastVerifiedBatchNum from rollupManager. Trying old zkevm smc... Error: ", err)
lastVerifiedBatchNum, err = etherMan.OldZkEVM.LastVerifiedBatch(&bind.CallOpts{Pending: false})
if err != nil {
return lastVerifiedBatchNum, err
Expand Down

0 comments on commit b54740d

Please sign in to comment.