Skip to content

Commit

Permalink
Rename config variable to runtimeConfig to avoid confusion with Block…
Browse files Browse the repository at this point in the history
…chain's config
  • Loading branch information
m-Peter committed Sep 27, 2023
1 parent bcf6545 commit 8c6c483
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions emulator/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,21 +548,21 @@ func configureFVM(blockchain *Blockchain, conf config, blocks *blocks) (*fvm.Vir

cadenceLogger := conf.Logger.Hook(CadenceHook{MainLogger: &conf.ServerLogger}).Level(zerolog.DebugLevel)

config := runtime.Config{
runtimeConfig := runtime.Config{
Debugger: blockchain.debugger,
AccountLinkingEnabled: true,
AttachmentsEnabled: true,
CapabilityControllersEnabled: true,
CoverageReport: conf.CoverageReport,
}
coverageReportedRuntime := &CoverageReportedRuntime{
Runtime: runtime.NewInterpreterRuntime(config),
Runtime: runtime.NewInterpreterRuntime(runtimeConfig),
CoverageReport: conf.CoverageReport,
Environment: runtime.NewBaseInterpreterEnvironment(config),
Environment: runtime.NewBaseInterpreterEnvironment(runtimeConfig),
}
customRuntimePool := reusableRuntime.NewCustomReusableCadenceRuntimePool(
1,
config,
runtimeConfig,
func(config runtime.Config) runtime.Runtime {
return coverageReportedRuntime
},
Expand Down

0 comments on commit 8c6c483

Please sign in to comment.