Skip to content

Commit

Permalink
omitempty for new 1559 fields (#240)
Browse files Browse the repository at this point in the history
* omitempty for new 1559 fields

* fix tests
  • Loading branch information
wangdayong228 authored Aug 28, 2024
1 parent e526cea commit cdd1915
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion types/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type BlockHeader struct {
BlockNumber *hexutil.Big `json:"blockNumber"`
GasLimit *hexutil.Big `json:"gasLimit"`
GasUsed *hexutil.Big `json:"gasUsed"`
BaseFeePerGas *hexutil.Big `json:"baseFeePerGas"`
BaseFeePerGas *hexutil.Big `json:"baseFeePerGas,omitempty"`
Timestamp *hexutil.Big `json:"timestamp"`
Difficulty *hexutil.Big `json:"difficulty"`
PowQuality *hexutil.Big `json:"powQuality"`
Expand Down
Loading

0 comments on commit cdd1915

Please sign in to comment.