Skip to content

Commit

Permalink
Fixed EndTransaction in presence of nil BlobGasPrice which happen on …
Browse files Browse the repository at this point in the history
…genesis block
  • Loading branch information
maoueh committed Apr 18, 2024
1 parent 07166a2 commit abb44a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions firehose/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ func Hex(in []byte) string {
}

func BigInt(in *big.Int) string {
if in == nil {
// This returns the same as if in would have been `big.NewInt(0)`
return "."
}

return Hex(in.Bytes())
}

Expand Down

0 comments on commit abb44a6

Please sign in to comment.