Skip to content

Commit

Permalink
Fix NilToZero shift
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Jan 13, 2025
1 parent 457d863 commit c1abd7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ func adaptBlockHeader(header *core.Header) BlockHeader {
var l1DataGasPrice ResourcePrice
if header.L1DataGasPrice != nil {
l1DataGasPrice = ResourcePrice{
InWei: nilToZero(header.L1DataGasPrice.PriceInWei),
InFri: nilToZero(header.L1DataGasPrice.PriceInFri),
InWei: header.L1DataGasPrice.PriceInWei.NilToZero(),
InFri: header.L1DataGasPrice.PriceInFri.NilToZero(),
}
} else {
l1DataGasPrice = ResourcePrice{
Expand Down

0 comments on commit c1abd7a

Please sign in to comment.