@@ -19,9 +19,9 @@ import (
1919 "github.com/onflow/flow-go/engine/execution/computation/computer"
2020 "github.com/onflow/flow-go/engine/execution/testutil"
2121 "github.com/onflow/flow-go/fvm"
22- "github.com/onflow/flow-go/fvm/derived"
2322 reusableRuntime "github.com/onflow/flow-go/fvm/runtime"
2423 "github.com/onflow/flow-go/fvm/storage"
24+ "github.com/onflow/flow-go/fvm/storage/derived"
2525 "github.com/onflow/flow-go/model/flow"
2626 "github.com/onflow/flow-go/module/executiondatasync/execution_data"
2727 exedataprovider "github.com/onflow/flow-go/module/executiondatasync/provider"
@@ -82,22 +82,17 @@ func mustFundAccounts(
8282 execCtx fvm.Context ,
8383 accs * testAccounts ,
8484) storage.SnapshotTree {
85- derivedBlockData := derived .NewEmptyDerivedBlockData ()
86- execCtx = fvm .NewContextFromParent (
87- execCtx ,
88- fvm .WithDerivedBlockData (derivedBlockData ))
89-
9085 var err error
9186 for _ , acc := range accs .accounts {
9287 transferTx := testutil .CreateTokenTransferTransaction (chain , 1_000_000 , acc .address , chain .ServiceAddress ())
9388 err = testutil .SignTransactionAsServiceAccount (transferTx , accs .seq , chain )
9489 require .NoError (b , err )
9590 accs .seq ++
9691
97- tx := fvm . Transaction (
98- transferTx ,
99- derivedBlockData . NextTxIndexForTestingOnly ())
100- executionSnapshot , output , err := vm . Run ( execCtx , tx , snapshotTree )
92+ executionSnapshot , output , err := vm . Run (
93+ execCtx ,
94+ fvm . Transaction ( transferTx , 0 ),
95+ snapshotTree )
10196 require .NoError (b , err )
10297 require .NoError (b , output .Err )
10398 snapshotTree = snapshotTree .Append (executionSnapshot )
0 commit comments