You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Print max fee conversion info when using v3 txs (#2797)
<!-- Reference any GitHub issues resolved by this PR -->
Closes#2707
## Introduced changes
<!-- A brief description of the changes -->
Display info about about conversion when using `--max-fee` flag with v3
transactions
## Checklist
<!-- Make sure all of these are complete -->
- [x] Linked relevant issue
- [x] Updated relevant documentation
- [x] Added relevant tests
- [x] Performed self-review of the code
- [x] Added changes to `CHANGELOG.md`
---------
Co-authored-by: Piotr Figiela <[email protected]>
let max_gas = NonZeroFelt::try_from(Felt::from(max_fee)
146
149
.floor_div(&max_gas_unit_price)).context("Calculated max-gas from provided --max-fee and the current network gas price is 0. Please increase --max-fee to obtain a positive gas amount")?;
let max_gas_unit_price:Felt = max_gas_unit_price.into();
300
+
println!(
301
+
"Specifying '--max-fee' flag while using v3 transactions results in conversion to '--max-gas' and '--max-gas-unit-price' flags\nConverted {max_fee} max fee to {max_gas} max gas and {max_gas_unit_price} max gas unit price\n",
0 commit comments