Skip to content

Commit

Permalink
Merge branch 'feature/atree-inlining-cadence-v0.42' into fxamacker/ad…
Browse files Browse the repository at this point in the history
…d-atree-inlining-to-feature-branch-atree-inlining-cadence-v0.42
  • Loading branch information
fxamacker committed Apr 19, 2024
2 parents 62c7780 + 5596677 commit 7b89544
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions integration/benchmark/load/load_type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"github.com/onflow/flow-go/engine/execution/testutil"
"github.com/onflow/flow-go/fvm"
"github.com/onflow/flow-go/fvm/environment"
envMock "github.com/onflow/flow-go/fvm/environment/mock"
"github.com/onflow/flow-go/fvm/storage/snapshot"
"github.com/onflow/flow-go/integration/benchmark/account"
"github.com/onflow/flow-go/integration/benchmark/common"
Expand Down Expand Up @@ -119,12 +120,21 @@ func testLoad(log zerolog.Logger, l load.Load) func(t *testing.T) {
func bootstrapVM(t *testing.T, chain flow.Chain) (*fvm.VirtualMachine, fvm.Context, snapshot.SnapshotTree) {
source := testutil.EntropyProviderFixture(nil)

blocks := new(envMock.Blocks)
block1 := unittest.BlockFixture()
blocks.On("ByHeightFrom",
block1.Header.Height,
block1.Header,
).Return(block1.Header, nil)

opts := computation.DefaultFVMOptions(chain.ChainID(), false, false)
opts = append(opts,
fvm.WithTransactionFeesEnabled(true),
fvm.WithAccountStorageLimit(true),
fvm.WithContractDeploymentRestricted(false),
fvm.WithEntropyProvider(source),
fvm.WithBlocks(blocks),
fvm.WithBlockHeader(block1.Header),
)

ctx := fvm.NewContext(opts...)
Expand Down

0 comments on commit 7b89544

Please sign in to comment.