Skip to content

Commit

Permalink
feat(types): use big.Int for block and batch number in BlockDetails
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Use `big.Int` type in `BlockDetails` for `Number`
and `L1BatchNumber`.
  • Loading branch information
danijelTxFusion committed Oct 9, 2024
1 parent 02a6e8e commit 8fb632b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ type BatchDetails struct {

// BlockDetails contains block details.
type BlockDetails struct {
Number uint64 `json:"number"` // The number of the block.
L1BatchNumber uint64 `json:"l1BatchNumber"` // Corresponding L1 batch number.
Number *big.Int `json:"number"` // The number of the block.
L1BatchNumber *big.Int `json:"l1BatchNumber"` // Corresponding L1 batch number.
Timestamp uint64 `json:"timestamp"` // Unix timestamp when the block was committed.
L1TxCount uint64 `json:"l1TxCount"` // The number of L1 transactions included in the block.
L2TxCount uint64 `json:"l2TxCount"` // The number of L2 transactions included in the block.
Expand Down

0 comments on commit 8fb632b

Please sign in to comment.