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 1bd4df8 commit ad6f951Copy full SHA for ad6f951
crates/core/src/fuel.rs
@@ -168,8 +168,8 @@ impl FuelCostsProvider {
168
let Ok(size_of_val) = u64::try_from(mem::size_of::<UntypedVal>()) else {
169
return u64::MAX;
170
};
171
- self.fuel_for_copying_bytes(len_values)
172
- .saturating_mul(size_of_val)
+ let copied_bytes = len_values.saturating_mul(size_of_val);
+ self.fuel_for_copying_bytes(copied_bytes)
173
}
174
175
0 commit comments