Open dutterbutter opened 10 months ago
While working on this issue it came out that the bootloader would reject any transactions that have their enforced_base_fee parameter set to anything other than what it expects, which is currently 250_000_000
.
For the implementation WIP, see https://github.com/Moonsong-Labs/era-test-node/tree/nish-fix-150-upstream
Description:
The
hardhat_setNextBlockBaseFeePerGas
endpoint needs to be implemented. This endpoint is designed to set the base fee for the next block. Refer to the Hardhat documentation for more details. Test implementations can be derived from the Hardhat repo here.JS implementation:
Expected response
Command to test the endpoint:
Response should be:
Requirements:
Implement the API:
true
if successful in setting the base fee for the next block, otherwisefalse
.Unit Tests:
setNextBlockBaseFeePerGas
method functionality.Documentation:
///
comments) detailing the method's purpose, potential return values, and any significant edge cases or errors.SUPPORTED_APIS.md
.test_endpoints.http
for more straightforward manual testing.Task Checklist:
setNextBlockBaseFeePerGas
method.setNextBlockBaseFeePerGas
method.hardhat_setNextBlockBaseFeePerGas
endpoint.Additional Notes:
If you're an external contributor looking to take on this issue, please comment below to let us know you're working on it. If you need further clarification on the requirements or need assistance with anything related to the implementation, feel free to ask!