From 8149d9c7d6adb9787dc8ca10891a2e787502822f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camil=20B=C4=83ncioiu?= Date: Mon, 6 Nov 2023 11:07:01 +0200 Subject: [PATCH] Replace call to init with call to upgrade during indirect upgrade --- integrationTests/json/scenariosFeatures_test.go | 8 -------- vmhost/hostCore/execution.go | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/integrationTests/json/scenariosFeatures_test.go b/integrationTests/json/scenariosFeatures_test.go index 2a1240258..bea69be2f 100644 --- a/integrationTests/json/scenariosFeatures_test.go +++ b/integrationTests/json/scenariosFeatures_test.go @@ -97,14 +97,6 @@ func TestRustPromisesFeatures(t *testing.T) { CheckNoError() } -// TODO: debug, then delete -func TestRustPromisesFeaturesDebug(t *testing.T) { - ScenariosTest(t). - Folder("features/composability/scenarios-promises/promises_call_async_retrieve_egld.scen.json"). - Run(). - CheckNoError() -} - func TestRustFormattedMessageFeatures(t *testing.T) { ScenariosTest(t). Folder("features/formatted-message-features/scenarios"). diff --git a/vmhost/hostCore/execution.go b/vmhost/hostCore/execution.go index 64aded75b..3e21ce743 100644 --- a/vmhost/hostCore/execution.go +++ b/vmhost/hostCore/execution.go @@ -819,7 +819,7 @@ func (host *vmHost) executeUpgrade(input *vmcommon.ContractCallInput) error { return vmhost.ErrContractInvalid } - err = host.callInitFunction() + err = host.callUpgradeFunction() if err != nil { return err }