Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
envestcc committed Dec 27, 2024
1 parent dab6042 commit efbb94a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions api/web3server_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ func uint64ToHex(val uint64) string {
}

func bigIntToHex(b *big.Int) string {
if b == nil {
return "0x0"
}
if b.Sign() == 0 {
if b == nil || b.Sign() == 0 {
return "0x0"
}
return "0x" + b.Text(16)
Expand Down

0 comments on commit efbb94a

Please sign in to comment.