Skip to content

Commit

Permalink
Merge pull request #6026 from onflow/janez/enable-dependency-check-fo…
Browse files Browse the repository at this point in the history
…r-all-networks

Enable dependency check for all networks
  • Loading branch information
j1010001 authored Jun 5, 2024
2 parents a2ddbd2 + 3960549 commit a54bdd9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cmd/scaffold.go
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,8 @@ func (fnb *FlowNodeBuilder) initFvmOptions() {
fvm.WithChain(fnb.RootChainID.Chain()),
fvm.WithBlocks(blockFinder),
fvm.WithAccountStorageLimit(true),
// temporarily enable dependency check for all networks
fvm.WithDependencyCheckEnabled(true),
}
if fnb.RootChainID == flow.Testnet || fnb.RootChainID == flow.Sandboxnet || fnb.RootChainID == flow.Mainnet {
vmOpts = append(vmOpts,
Expand All @@ -1547,12 +1549,6 @@ func (fnb *FlowNodeBuilder) initFvmOptions() {
fvm.WithContractDeploymentRestricted(false),
)
}
// temporarily enable dependency check for testnet
if fnb.RootChainID == flow.Testnet {
vmOpts = append(vmOpts,
fvm.WithDependencyCheckEnabled(true),
)
}

fnb.FvmOptions = vmOpts
}
Expand Down

0 comments on commit a54bdd9

Please sign in to comment.