Skip to content

Commit 2c04aa8

Browse files
Merge pull request #20 from kaleido-io/omitempty-txn-value
omitempty Value and Gas for ethsigner.Transaction
2 parents 1370254 + 7955e9e commit 2c04aa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/ethsigner/transaction.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ type Transaction struct {
5454
GasPrice *ethtypes.HexInteger `json:"gasPrice,omitempty"`
5555
MaxPriorityFeePerGas *ethtypes.HexInteger `json:"maxPriorityFeePerGas,omitempty"`
5656
MaxFeePerGas *ethtypes.HexInteger `json:"maxFeePerGas,omitempty"`
57-
GasLimit *ethtypes.HexInteger `json:"gas"`
57+
GasLimit *ethtypes.HexInteger `json:"gas,omitempty"` // note this is required for some methods (eth_estimateGas)
5858
To *ethtypes.Address0xHex `json:"to,omitempty"`
59-
Value *ethtypes.HexInteger `json:"value"`
59+
Value *ethtypes.HexInteger `json:"value,omitempty"`
6060
Data ethtypes.HexBytes0xPrefix `json:"data"`
6161
}
6262

0 commit comments

Comments
 (0)