We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70e7697 commit 760eb3fCopy full SHA for 760eb3f
fvm/src/syscalls/mod.rs
@@ -80,7 +80,9 @@ impl<K: Kernel> InvocationData<K> {
80
"exec_units",
81
self.kernel
82
.price_list()
83
- .on_consume_exec_units(exec_units_consumed)
+ .on_consume_exec_units(
84
+ exec_units_consumed.saturating_sub(self.exec_units_consumed_snapshot),
85
+ )
86
.total(),
87
)?;
88
self.set_snapshots(self.kernel.gas_available(), exec_units_consumed);
0 commit comments