fuels-rs
fuels-rs copied to clipboard
chore: enable setting a static gas price via NodeConfig
Closes #1581
Release notes
In this release, we:
- Added a possibility to configure
--gas-price-change-percentviaNodeConfig.
Checklist
- [x] All changes are covered by tests (or not applicable)
- [x] All changes are documented (or not applicable)
- [x] I reviewed the entire PR myself (preferably, on GH UI)
- [x] I described all Breaking Changes (or there's none)
[!NOTE] Introduce
gas_price_change_percentinNodeConfig, pass it via--gas-price-change-percent, and add an e2e test verifying static gas price across blocks.
- Test Helpers:
- Add
NodeConfig.gas_price_change_percent(default0).- Pass through to node via
--gas-price-change-percentinfuel_bin_service::ExtendedConfig::args_vec.- E2E Tests:
- Update
e2e/tests/providers.rsto configure static gas price (starting_gas_price+gas_price_change_percent: 0).- Verify
estimate_gas_priceremains constant after producing blocks.Written by Cursor Bugbot for commit 23c6476e438de8edae19a2e3477ce87c0a835aa4. This will update automatically on new commits. Configure here.
@hal3e please review