Skip to content

Commit

Permalink
Don't unwrap on TxHasEnded
Browse files Browse the repository at this point in the history
  • Loading branch information
Oppen committed Aug 13, 2024
1 parent 4603b17 commit bea26df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/lib/multivm/src/versions/era_vm/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ impl<S: ReadStorage + 'static> Vm<S> {
data.to_string()
};

println!("BOOTLOADER: {} {}", msg, data_str)
//println!("BOOTLOADER: {} {}", msg, data_str)
}
Hook::TxHasEnded => {
// println!("TX HAS ENDED");
if let VmExecutionMode::OneTx = execution_mode {
return self.last_tx_result.take().unwrap();
if let (VmExecutionMode::OneTx, Some(result)) = (execution_mode, self.last_tx_result.take()) {
return result;
}
}
}
Expand Down

0 comments on commit bea26df

Please sign in to comment.