Skip to content

Commit

Permalink
Fix: Missing Gas Costs in exitToNear and exitToEthereum Precompiles (#…
Browse files Browse the repository at this point in the history
…687)

* Update native.rs

* Remove spaces

* chore: make clippy happy

---------

Co-authored-by: Oleksandr Anyshchenko <oleksandr.anyshchenko@aurora.dev>
Co-authored-by: Ahmed Ali <ahmedaabdulwahed@gmail.com>
  • Loading branch information
3 people committed Apr 5, 2023
1 parent 14dd84e commit 837896a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions engine-precompiles/src/native.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,8 @@ impl<I: IO> Precompile for ExitToNear<I> {

Ok(PrecompileOutput {
logs: vec![promise_log, exit_event_log],
..Default::default()
cost: Self::required_gas(input)?,
output: Vec::new(),
})
}
}
Expand Down Expand Up @@ -613,7 +614,8 @@ impl<I: IO> Precompile for ExitToEthereum<I> {

Ok(PrecompileOutput {
logs: vec![promise_log, exit_event_log],
..Default::default()
cost: Self::required_gas(input)?,
output: Vec::new(),
})
}
}
Expand Down

0 comments on commit 837896a

Please sign in to comment.