Release caver-js v1.9.0
Closed this issue · 1 comments
jimni1222 commented
JSON RPC Layer
Add effectiveGasPrice
field to the return object of caver.rpc.klay.getTransactionReceipt
Transaction Layer
Implement tx.getSuggestedGasPrice
→ Depends on hard fork, returns suggested gas price
Modify optional field setting logic
(Before KIP-71 Hardfork) header.baseFeePerGas === undefined || header.baseFeePerGas =< 0
- tx.type == EthereumDynamicFeeTx
- maxPriorityFeePerGas === undefined → set with return value of
caver.rpc.klay.getMaxPriorityFeePerGas
- maxFeePerGas === undefined → set with return value of
caver.rpc.klay.getGasPrice
- maxPriorityFeePerGas === undefined → set with return value of
- tx.type != EthereumDynamicFeeTx
- gasPrice === undefined → set with return value of
caver.rpc.klay.getGasPrice
(After KIP-71 Hardfork) header.baseFeePerGas !== undefined || header.baseFeePerGas > 0
- gasPrice === undefined → set with return value of
- tx.type === EthereumDynamicFeeTx
- maxPriorityFeePerGas === undefined → set with return value of
caver.rpc.klay.getMaxPriorityFeePerGas
(Klaytn will ignore this) - maxFeePerGas → set with
baseFee * 2
- maxPriorityFeePerGas === undefined → set with return value of
- tx.type != EthereumDynamicFeeTx
- gasPrice === undefined → set with
baseFee * 2
- gasPrice === undefined → set with
- Modify
tx.fillTransaction
logic for dynamic base fee → usetx.getSuggestedGasPrice
jimni1222 commented