From 5d425a6e45cc358199b44a242739b42b408ef688 Mon Sep 17 00:00:00 2001 From: Ekaterina Pavlova Date: Thu, 15 Feb 2024 20:47:02 +0300 Subject: [PATCH] smartcontract: fix go version mismatch in TestContractInitAndCompile Needs to updated dependencies inside the test for go1.18 and higher to match with interop module. Close #3152 Signed-off-by: Ekaterina Pavlova --- cli/smartcontract/smart_contract.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/smartcontract/smart_contract.go b/cli/smartcontract/smart_contract.go index 00c0cce89..de8cb4c49 100644 --- a/cli/smartcontract/smart_contract.go +++ b/cli/smartcontract/smart_contract.go @@ -374,6 +374,9 @@ func initSmartContract(ctx *cli.Context) error { } gm := []byte("module " + contractName + ` + +go 1.19 + require ( github.com/nspcc-dev/neo-go/pkg/interop ` + ver + ` )`)