Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Release caver-js v1.9.0 #662

Closed
jimni1222 opened this issue Jun 21, 2022 · 1 comment
Closed

Release caver-js v1.9.0 #662

jimni1222 opened this issue Jun 21, 2022 · 1 comment
Assignees

Comments

@jimni1222
Copy link
Contributor

jimni1222 commented Jun 21, 2022

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
  • tx.type != EthereumDynamicFeeTx
    • gasPrice === undefined → set with return value of caver.rpc.klay.getGasPrice
      (After KIP-71 Hardfork) header.baseFeePerGas !== undefined || header.baseFeePerGas > 0
  • tx.type === EthereumDynamicFeeTx
    • maxPriorityFeePerGas === undefined → set with return value of caver.rpc.klay.getMaxPriorityFeePerGas (Klaytn will ignore this)
    • maxFeePerGas → set with baseFee * 2
  • tx.type != EthereumDynamicFeeTx
    • gasPrice === undefined → set with baseFee * 2
  • Modify tx.fillTransaction logic for dynamic base fee → use tx.getSuggestedGasPrice
@jimni1222
Copy link
Contributor Author

klaytn/klaytn-docs#456

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant