Skip to content

Commit

Permalink
Implement static return for eth-tester eth_maxPriorityFeePerGas
Browse files Browse the repository at this point in the history
  • Loading branch information
fselmo committed Nov 11, 2021
1 parent 3242843 commit 625e0e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion tests/integration/test_ethereum_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ class TestEthereumTesterEthModule(EthModuleTest):
EthModuleTest.test_eth_get_raw_transaction, ValueError)
test_eth_get_raw_transaction_raises_error = not_implemented(
EthModuleTest.test_eth_get_raw_transaction, ValueError)
test_eth_max_priority_fee = not_implemented(EthModuleTest.test_eth_max_priority_fee, ValueError)
test_eth_replace_transaction_already_mined = not_implemented(
EthModuleTest.test_eth_replace_transaction_already_mined, ValueError
)
Expand Down
2 changes: 1 addition & 1 deletion web3/providers/eth_tester/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def personal_send_transaction(eth_tester: "EthereumTester", params: Any) -> HexS
'hashrate': static_return(0),
'chainId': static_return('0x3d'),
'feeHistory': not_implemented,
'maxPriorityFeePerGas': not_implemented,
'maxPriorityFeePerGas': static_return(10 ** 9),
'gasPrice': static_return(10 ** 9), # must be >= base fee post-London
'accounts': call_eth_tester('get_accounts'),
'blockNumber': compose(
Expand Down

0 comments on commit 625e0e6

Please sign in to comment.