Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zjg555543 committed Jan 22, 2025
1 parent e98aecd commit 3a8b02c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpc/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ func (b *BatchEndpoints) GetBatch(batchNumber uint64) (*types.RPCBatch, error) {
}
rpcBatch.SetLastL2BLockTimestamp(lastL2BlockTimestamp)
} else {
log.Infof("No blocks in the batch, setting the last l2 block timestamp from the batch data:%v,%v", batchNumber, zkEVMBatchData.Timestamp)
log.Infof("No blocks in the batch, setting the last l2 block timestamp from the batch data:%v,%v",
batchNumber, zkEVMBatchData.Timestamp)
rpcBatch.SetLastL2BLockTimestamp(new(big.Int).SetBytes(common.FromHex(zkEVMBatchData.Timestamp)).Uint64())
}

Expand Down

0 comments on commit 3a8b02c

Please sign in to comment.