Skip to content

Commit

Permalink
Update fuel-vm/src/interpreter/blockchain.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Green Baneling <[email protected]>
  • Loading branch information
Dentosal and xgreenx authored Oct 7, 2024
1 parent 1e7add0 commit d1349c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fuel-vm/src/interpreter/blockchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -809,9 +809,7 @@ where
let current_contract = current_contract(self.context, self.fp, self.memory)?;

let length = bytes::padded_len_word(length_unpadded).unwrap_or(Word::MAX);
#[allow(clippy::arithmetic_side_effects)]
// length >= length_unpadded as per line above
let length_padding = length - length_unpadded;
let length_padding = length.saturating_sub(length_unpadded);

// Fetch the storage blob
let profiler = ProfileGas {
Expand Down

0 comments on commit d1349c6

Please sign in to comment.