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
The gas configurations have been set to u128 instead of U256 in the alloy TransactionBuilder
It would be nice to have an into() implementation for a ParseUnits to convert it directly to u128.
This way we would be able to set the max priority fee per gas (and max_fee_per_gas) more smoothly:
// Currently not working:
my_transaction_builder.max_priority_fee_per_gas(parse_units("0.1","gwei").unwrap().into());
Instead of the current workaround:
let max_priority_fee_per_gas:U256 = parse_units("0.1","gwei").unwrap().into();
my_transaction_build.max_priority_fee_per_gas(max_priority_fee_per_gas.to());
The text was updated successfully, but these errors were encountered:
Component
primitives
Describe the feature you would like
The gas configurations have been set to u128 instead of U256 in the alloy TransactionBuilder
It would be nice to have an
into()
implementation for a ParseUnits to convert it directly to u128.This way we would be able to set the max priority fee per gas (and max_fee_per_gas) more smoothly:
Instead of the current workaround:
The text was updated successfully, but these errors were encountered: