Skip to content

Commit

Permalink
Merge pull request #20 from kaleido-io/omitempty-txn-value
Browse files Browse the repository at this point in the history
omitempty Value and Gas for ethsigner.Transaction
  • Loading branch information
peterbroadhurst authored Aug 25, 2022
2 parents 1370254 + 7955e9e commit 2c04aa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ethsigner/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ type Transaction struct {
GasPrice *ethtypes.HexInteger `json:"gasPrice,omitempty"`
MaxPriorityFeePerGas *ethtypes.HexInteger `json:"maxPriorityFeePerGas,omitempty"`
MaxFeePerGas *ethtypes.HexInteger `json:"maxFeePerGas,omitempty"`
GasLimit *ethtypes.HexInteger `json:"gas"`
GasLimit *ethtypes.HexInteger `json:"gas,omitempty"` // note this is required for some methods (eth_estimateGas)
To *ethtypes.Address0xHex `json:"to,omitempty"`
Value *ethtypes.HexInteger `json:"value"`
Value *ethtypes.HexInteger `json:"value,omitempty"`
Data ethtypes.HexBytes0xPrefix `json:"data"`
}

Expand Down

0 comments on commit 2c04aa8

Please sign in to comment.