Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contracts: Fix double charge of gas for host functions #3361

Merged
merged 8 commits into from
Feb 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update substrate/frame/contracts/src/gas.rs
Co-authored-by: PG Herveou <[email protected]>
  • Loading branch information
athei and pgherveou authored Feb 19, 2024
commit d9d8db34e27f0bbfbd498edb2ef46f28749d4b47
2 changes: 1 addition & 1 deletion substrate/frame/contracts/src/gas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub struct GasMeter<T: Config> {
/// The amount of resources that was consumed by the execution engine.
///
/// This should be equivalent to `self.gas_consumed().ref_time()` but expressed in whatever
/// unit the execution engine uses to track resource consumption. We have to track it seperatly
/// unit the execution engine uses to track resource consumption. We have to track it separately
/// in order to avoid the loss of precision that happens when converting from ref_time to the
/// execution engine unit.
executor_consumed: u64,
Expand Down
Loading