Skip to content

Commit

Permalink
update fee calculation ref: rust-ethereum/evm#132
Browse files Browse the repository at this point in the history
  • Loading branch information
zjb0807 committed Jan 11, 2024
1 parent e666a3c commit 5655b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/evm/src/runner/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ impl<'config, 'precompiles, S: StackState<'config>, P: PrecompileSet> StackExecu
/// Get fee needed for the current executor, given the price.
pub fn fee(&self, price: U256) -> U256 {
let used_gas = self.used_gas();
U256::from(used_gas) * price
U256::from(used_gas).saturating_mul(price)
}

/// Get account nonce.
Expand Down

0 comments on commit 5655b15

Please sign in to comment.