From 5d425a6e45cc358199b44a242739b42b408ef688 Mon Sep 17 00:00:00 2001 From: Ekaterina Pavlova Date: Thu, 15 Feb 2024 20:47:02 +0300 Subject: [PATCH 1/2] 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 00c0cce898..de8cb4c491 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 + ` )`) From 5128b84e1deb0ddc504480d6a3474294e70f2dd0 Mon Sep 17 00:00:00 2001 From: Ekaterina Pavlova Date: Mon, 19 Feb 2024 19:12:21 +0300 Subject: [PATCH 2/2] *: update go.mod According to https://go.dev/doc/modules/gomod-ref go version should be placed before `require` section. Signed-off-by: Ekaterina Pavlova --- go.mod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 10d26c5956..9ea3fa5221 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,7 @@ module github.com/nspcc-dev/neo-go +go 1.19 + require ( github.com/chzyer/readline v1.5.1 github.com/consensys/gnark v0.9.1 @@ -76,5 +78,3 @@ require ( google.golang.org/protobuf v1.31.0 // indirect rsc.io/tmplfunc v0.0.3 // indirect ) - -go 1.19