Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ethapi): omits additional fields when empty
Omits `feeCurrency`, `gatewayFeeRecipient`, and `gatewayFee` from the response when they are empty (effectively on Ethereum-compatible transactions). When I call `eth_gasTransactionByHash` on an EIP-1559 transaction, the response object includes `feeCurrency`, `gatewayFeeRecipient`, and `gatewayFee` although they aren't relevant.
- Loading branch information