From 8c6c4830814a3355ee74eddfbf86713163255b15 Mon Sep 17 00:00:00 2001 From: Ardit Marku Date: Wed, 27 Sep 2023 11:30:15 +0300 Subject: [PATCH] Rename config variable to runtimeConfig to avoid confusion with Blockchain's config --- emulator/blockchain.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/emulator/blockchain.go b/emulator/blockchain.go index 717d0f40..4e06f36c 100644 --- a/emulator/blockchain.go +++ b/emulator/blockchain.go @@ -548,7 +548,7 @@ 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, @@ -556,13 +556,13 @@ func configureFVM(blockchain *Blockchain, conf config, blocks *blocks) (*fvm.Vir 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 },