Skip to content

Commit

Permalink
init workingset directly
Browse files Browse the repository at this point in the history
  • Loading branch information
yaziciahmet committed Feb 15, 2025
1 parent e5f583b commit a05d997
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use sov_modules_api::hooks::{
use sov_modules_api::transaction::{PreFork2Transaction, Transaction};
use sov_modules_api::{
native_debug, BasicAddress, BlobReaderTrait, Context, DaSpec, DispatchCall, Genesis, Signature,
Spec, StateCheckpoint, UnsignedSoftConfirmation, WorkingSet,
Spec, UnsignedSoftConfirmation, WorkingSet,
};
use sov_rollup_interface::da::DaDataBatchProof;
use sov_rollup_interface::fork::ForkManager;
Expand Down Expand Up @@ -379,9 +379,7 @@ where
let soft_confirmation_info =
HookSoftConfirmationInfo::new(soft_confirmation, *pre_state_root, current_spec);

let checkpoint =
StateCheckpoint::with_witness(pre_state.clone(), state_witness, offchain_witness);
let mut working_set = checkpoint.to_revertable();
let mut working_set = WorkingSet::with_witness(pre_state.clone(), state_witness, offchain_witness);

native_debug!("Applying soft confirmation in STF Blueprint");

Expand Down

0 comments on commit a05d997

Please sign in to comment.