@@ -205,7 +205,7 @@ func Test_StakeDelegateAndDelayedClaim(t *testing.T) {
205205 // CREATE NEW ACCOUNT WITH BLOCK ISSUER AND STAKING FEATURES FROM BASIC UTXO
206206 newAccountBlockIssuerKey := tpkg .RandBlockIssuerKey ()
207207 // set the expiry slot of the transitioned genesis account to the latest committed + MaxCommittableAge
208- newAccountExpirySlot := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Slot () + ts .API .ProtocolParameters ().MaxCommittableAge ()
208+ newAccountExpirySlot := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Slot () + ts .API .ProtocolParameters ().MaxCommittableAge ()
209209
210210 stakedAmount := iotago .BaseToken (10000 )
211211
@@ -421,7 +421,7 @@ func Test_ImplicitAccounts(t *testing.T) {
421421 ),
422422 mock .WithAccountAmount (mock .MinIssuerAccountAmount (ts .API .ProtocolParameters ())),
423423 )
424- block2Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
424+ block2Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
425425 block2 := ts .IssueBasicBlockWithOptions ("block2" , newUserWallet , tx2 , mock .WithStrongParents (latestParents ... ))
426426 latestParents = ts .CommitUntilSlot (block2Slot , block2 .ID ())
427427
@@ -543,7 +543,7 @@ func Test_NegativeBIC_BlockIssuerLocked(t *testing.T) {
543543 // Try to issue more blocks from each of the issuers - one succeeds in issuing a block,
544544 // the other has the block rejected in the PostSolidFilter as his account has negative BIC value.
545545 {
546- block2Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
546+ block2Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
547547
548548 block21 := ts .IssueBasicBlockWithOptions ("block2.1" , wallet1 , & iotago.TaggedData {}, mock .WithSlotCommitment (block2Commitment ))
549549
@@ -586,7 +586,7 @@ func Test_NegativeBIC_BlockIssuerLocked(t *testing.T) {
586586 Mana : iotago .Mana (allottedBIC ),
587587 }}, "Genesis:0" )
588588
589- block3Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
589+ block3Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
590590 // Wallet 1 whose account is not locked is issuing the block to unlock the account of wallet 2.
591591 block31 := ts .IssueBasicBlockWithOptions ("block3.1" , wallet1 , tx1 , mock .WithStrongParents (latestParents ... ), mock .WithSlotCommitment (block3Commitment ))
592592
@@ -618,7 +618,7 @@ func Test_NegativeBIC_BlockIssuerLocked(t *testing.T) {
618618
619619 // Issue block from the unlocked account of wallet 2 to make sure that it's actually unlocked.
620620 {
621- block4Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
621+ block4Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
622622
623623 block4 := ts .IssueBasicBlockWithOptions ("block4" , wallet2 , & iotago.TaggedData {}, mock .WithStrongParents (latestParents ... ), mock .WithSlotCommitment (block4Commitment ))
624624
@@ -768,7 +768,7 @@ func Test_NegativeBIC_AccountOutput(t *testing.T) {
768768 Mana : iotago .Mana (allottedBIC ),
769769 }}, "Genesis:0" )
770770
771- block2Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
771+ block2Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
772772 // Wallet 2 whose account is not locked is issuing the block to unlock the account of wallet 1.
773773 block2 := ts .IssueBasicBlockWithOptions ("block2" , wallet2 , tx2 , mock .WithStrongParents (latestParents ... ), mock .WithSlotCommitment (block2Commitment ))
774774
@@ -805,7 +805,7 @@ func Test_NegativeBIC_AccountOutput(t *testing.T) {
805805 mock .WithBlockIssuerExpirySlot (newExpirySlot ),
806806 )
807807
808- block3Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
808+ block3Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
809809
810810 // Wallet 1, which already has non-negative BIC issues the block.
811811 block3 := ts .IssueBasicBlockWithOptions ("block3" , wallet1 , tx3 , mock .WithStrongParents (latestParents ... ), mock .WithSlotCommitment (block3Commitment ))
@@ -843,7 +843,7 @@ func Test_NegativeBIC_AccountOutput(t *testing.T) {
843843 // create a transaction which destroys the genesis account.
844844
845845 tx4 := wallet1 .DestroyAccount ("TX4" , "TX3:0" )
846- block4Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
846+ block4Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
847847
848848 block4 := ts .IssueBasicBlockWithOptions ("block4" , wallet2 , tx4 , mock .WithStrongParents (latestParents ... ), mock .WithSlotCommitment (block4Commitment ))
849849 latestParents = ts .CommitUntilSlot (block4Slot , block4 .ID ())
@@ -979,7 +979,7 @@ func Test_NegativeBIC_AccountOwnedBasicOutputLocked(t *testing.T) {
979979
980980 // TRY TO SPEND THE BASIC OUTPUT FROM AN ACCOUNT ADDRESS
981981 {
982- block2Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
982+ block2Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
983983
984984 tx2 := wallet1 .SendFundsFromAccount (
985985 "TX2" ,
@@ -1026,7 +1026,7 @@ func Test_NegativeBIC_AccountOwnedBasicOutputLocked(t *testing.T) {
10261026 Mana : iotago .Mana (allottedBIC ),
10271027 }}, "TX0:1" )
10281028
1029- block3Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
1029+ block3Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
10301030
10311031 // Wallet 2 whose account is not locked is issuing the block to unlock the account of wallet 1.
10321032 block3 := ts .IssueBasicBlockWithOptions ("block3" , wallet2 , tx3 , mock .WithStrongParents (latestParents ... ), mock .WithSlotCommitment (block3Commitment ))
@@ -1060,7 +1060,7 @@ func Test_NegativeBIC_AccountOwnedBasicOutputLocked(t *testing.T) {
10601060 block4Slot := ts .CurrentSlot ()
10611061 // SPEND THE BASIC OUTPUT FROM AN ACCOUNT ADDRESS
10621062 {
1063- block4Commitment := node1 .Protocol .Engines .Main .Get ().Storage . Settings () .LatestCommitment ().Commitment ()
1063+ block4Commitment := node1 .Protocol .Engines .Main .Get ().SyncManager .LatestCommitment ().Commitment ()
10641064
10651065 tx4 := wallet1 .SendFundsFromAccount (
10661066 "TX4" ,
0 commit comments