@@ -109,7 +109,7 @@ func (s *StateMutatorSuite) testEvolveState(seals []*flow.Seal, expectedResultin
109109 // expect calls to prepare a deferred update for indexing and storing the resulting state:
110110 // as state has not changed, we expect the parent blocks protocol state ID
111111 if stateChangeExpected {
112- s .protocolKVStoreDB .On ("BatchStore" , mock . Anything , rw , expectedResultingStateID , & s .evolvingState ).Return (nil ).Once ()
112+ s .protocolKVStoreDB .On ("BatchStore" , rw , expectedResultingStateID , & s .evolvingState ).Return (nil ).Once ()
113113 }
114114
115115 deferredDBOps := deferred .NewDeferredBlockPersist ()
@@ -553,7 +553,7 @@ func (s *StateMutatorSuite) Test_EncodeFailed() {
553553
554554 rw := storagemock .NewReaderBatchWriter (s .T ())
555555 s .protocolKVStoreDB .On ("BatchIndex" , mock .Anything , mock .Anything , s .candidate .ID (), expectedResultingStateID ).Return (nil ).Once ()
556- s .protocolKVStoreDB .On ("BatchStore" , mock .Anything , mock . Anything , expectedResultingStateID , & s .evolvingState ).Return (exception ).Once ()
556+ s .protocolKVStoreDB .On ("BatchStore" , mock .Anything , expectedResultingStateID , & s .evolvingState ).Return (exception ).Once ()
557557
558558 deferredDBOps := deferred .NewDeferredBlockPersist ()
559559 _ , err := s .mutableState .EvolveState (deferredDBOps , s .candidate .ParentID , s .candidate .View , []* flow.Seal {})
0 commit comments