Skip to content

Commit

Permalink
use self.current_transient_data_lifespan
Browse files Browse the repository at this point in the history
  • Loading branch information
snissn committed Dec 13, 2024
1 parent fb8025d commit 2c8febf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions actors/evm/src/interpreter/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,7 @@ impl<'r, RT: Runtime> System<'r, RT> {

if let Some(transient_data) = state.transient_data {
let state_transient_data_lifespan = transient_data.transient_data_lifespan;
let current_transient_data_lifespan = get_current_transient_data_lifespan(self.rt)?;

if current_transient_data_lifespan == state_transient_data_lifespan {
if self.current_transient_data_lifespan == state_transient_data_lifespan {
self.transient_slots.set_root(&transient_data.transient_data_state).context_code(
ExitCode::USR_ILLEGAL_STATE,
"transient_state not in blockstore",
Expand Down

0 comments on commit 2c8febf

Please sign in to comment.