Ensure a non-zero fee in the Router OutInstruction gas fuzz test

This commit is contained in:
Luke Parker
2025-01-27 15:39:55 -05:00
parent fa0dadc9bd
commit 19422de231
4 changed files with 13 additions and 2 deletions

View File

@@ -225,6 +225,8 @@ impl Router {
}
/// The worst-case gas cost for a legacy transaction which executes this batch.
///
/// This assumes the fee will be non-zero.
pub fn execute_gas(&self, coin: Coin, fee_per_gas: U256, outs: &OutInstructions) -> u64 {
// Unfortunately, we can't cache this in self, despite the following code being written such
// that a common EVM instance could be used, as revm's types aren't Send/Sync and we expect the