@@ -22,7 +22,7 @@ import (
2222
2323 hotstuff "github.com/onflow/flow-go/consensus/hotstuff/model"
2424 "github.com/onflow/flow-go/engine"
25- "github.com/onflow/flow-go/engine/execution/ state/delta "
25+ "github.com/onflow/flow-go/fvm/ state"
2626 "github.com/onflow/flow-go/ledger/common/bitutils"
2727 "github.com/onflow/flow-go/model/bootstrap"
2828 "github.com/onflow/flow-go/model/chainsync"
@@ -239,16 +239,6 @@ func AsSlashable[T any](msg T) flow.Slashable[T] {
239239 return slashable
240240}
241241
242- func StateDeltaFixture () * messages.ExecutionStateDelta {
243- header := BlockHeaderFixture ()
244- block := BlockWithParentFixture (header )
245- return & messages.ExecutionStateDelta {
246- ExecutableBlock : entity.ExecutableBlock {
247- Block : block ,
248- },
249- }
250- }
251-
252242func ReceiptAndSealForBlock (block * flow.Block ) (* flow.ExecutionReceipt , * flow.Seal ) {
253243 receipt := ReceiptForBlockFixture (block )
254244 seal := Seal .Fixture (Seal .WithBlock (block .Header ), Seal .WithResult (& receipt .ExecutionResult ))
@@ -341,8 +331,8 @@ func WithoutGuarantee(payload *flow.Payload) {
341331 payload .Guarantees = nil
342332}
343333
344- func StateInteractionsFixture () * delta. Snapshot {
345- return & delta . NewDeltaView ( nil ). Interactions (). Snapshot
334+ func StateInteractionsFixture () * state. ExecutionSnapshot {
335+ return & state. ExecutionSnapshot {}
346336}
347337
348338func BlockWithParentAndProposerFixture (t * testing.T , parent * flow.Header , proposer flow.Identifier ) flow.Block {
@@ -381,26 +371,6 @@ func BlockWithParentAndSeals(parent *flow.Header, seals []*flow.Header) *flow.Bl
381371 return block
382372}
383373
384- func StateDeltaWithParentFixture (parent * flow.Header ) * messages.ExecutionStateDelta {
385- payload := PayloadFixture ()
386- header := BlockHeaderWithParentFixture (parent )
387- header .PayloadHash = payload .Hash ()
388- block := flow.Block {
389- Header : header ,
390- Payload : & payload ,
391- }
392-
393- var stateInteractions []* delta.Snapshot
394- stateInteractions = append (stateInteractions , StateInteractionsFixture ())
395-
396- return & messages.ExecutionStateDelta {
397- ExecutableBlock : entity.ExecutableBlock {
398- Block : & block ,
399- },
400- StateInteractions : stateInteractions ,
401- }
402- }
403-
404374func GenesisFixture () * flow.Block {
405375 genesis := flow .Genesis (flow .Emulator )
406376 return genesis
0 commit comments