ethers-rs/ethers-core/src/utils
juniorbeef 97744b87a6
core: fix overflow and panic in priority fee estimation (#839)
The U256 priority fees were being coerced into u32, which was not big
enough for actual values. The overflow was happening but not checked.
This led to a possible divide-by-zero panic in this code as well.

This change does the math as I256 -- overkill, but it works.
2022-01-29 14:54:38 +02:00
..
ganache.rs Update Cryptography crates (#617) 2021-12-21 00:41:57 +02:00
geth.rs chore(clippy): make clippy happy (#705) 2021-12-19 06:28:38 +02:00
hash.rs chore: add rustfmt.toml (#537) 2021-10-29 14:29:35 +02:00
mod.rs core: fix overflow and panic in priority fee estimation (#839) 2022-01-29 14:54:38 +02:00
moonbeam.rs Update Cryptography crates (#617) 2021-12-21 00:41:57 +02:00
units.rs fix: do not panic on invalid units conversion (#691) 2021-12-15 03:32:29 +01:00