Skip to content

Commit 8c6c483

Browse files
committed
Rename config variable to runtimeConfig to avoid confusion with Blockchain's config
1 parent bcf6545 commit 8c6c483

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

emulator/blockchain.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -548,21 +548,21 @@ func configureFVM(blockchain *Blockchain, conf config, blocks *blocks) (*fvm.Vir
548548

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

551-
config := runtime.Config{
551+
runtimeConfig := runtime.Config{
552552
Debugger: blockchain.debugger,
553553
AccountLinkingEnabled: true,
554554
AttachmentsEnabled: true,
555555
CapabilityControllersEnabled: true,
556556
CoverageReport: conf.CoverageReport,
557557
}
558558
coverageReportedRuntime := &CoverageReportedRuntime{
559-
Runtime: runtime.NewInterpreterRuntime(config),
559+
Runtime: runtime.NewInterpreterRuntime(runtimeConfig),
560560
CoverageReport: conf.CoverageReport,
561-
Environment: runtime.NewBaseInterpreterEnvironment(config),
561+
Environment: runtime.NewBaseInterpreterEnvironment(runtimeConfig),
562562
}
563563
customRuntimePool := reusableRuntime.NewCustomReusableCadenceRuntimePool(
564564
1,
565-
config,
565+
runtimeConfig,
566566
func(config runtime.Config) runtime.Runtime {
567567
return coverageReportedRuntime
568568
},

0 commit comments

Comments
 (0)