diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index eab01a75a..4cf7bb0aa 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -156,19 +156,13 @@ jobs: strategy: matrix: os: [ubuntu-22.04, windows-2022, macos-12, macos-14] - go_versions: [ '1.21', '1.22', '1.23' ] + go_versions: [ '1.22', '1.23' ] exclude: # Only latest Go version for Windows and MacOS. - - os: windows-2022 - go_versions: '1.21' - os: windows-2022 go_versions: '1.22' - - os: macos-12 - go_versions: '1.21' - os: macos-12 go_versions: '1.22' - - os: macos-14 - go_versions: '1.21' - os: macos-14 go_versions: '1.22' # Exclude latest Go version for Ubuntu as Coverage uses it. diff --git a/README.md b/README.md index 3b6f0668c..4c3267e59 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ NeoGo, `:latest` points to the latest release) or build yourself. ### Building -Building NeoGo requires Go 1.21+ and `make`: +Building NeoGo requires Go 1.22+ and `make`: ``` make diff --git a/cli/smartcontract/smart_contract.go b/cli/smartcontract/smart_contract.go index 8489c31b5..bc6306e0a 100644 --- a/cli/smartcontract/smart_contract.go +++ b/cli/smartcontract/smart_contract.go @@ -417,7 +417,7 @@ func initSmartContract(ctx *cli.Context) error { gm := []byte("module " + contractName + ` -go 1.21 +go 1.22 require ( github.com/nspcc-dev/neo-go/pkg/interop ` + ver + ` diff --git a/cli/vm/cli_test.go b/cli/vm/cli_test.go index c2b994f92..985b5510f 100644 --- a/cli/vm/cli_test.go +++ b/cli/vm/cli_test.go @@ -353,7 +353,7 @@ require ( github.com/nspcc-dev/neo-go/pkg/interop v0.0.0 ) replace github.com/nspcc-dev/neo-go/pkg/interop => ` + filepath.Join(wd, "../../pkg/interop") + ` -go 1.21`) +go 1.22`) require.NoError(t, os.WriteFile(filepath.Join(tmpDir, "go.mod"), goMod, os.ModePerm)) return filename } diff --git a/examples/engine/go.mod b/examples/engine/go.mod index 12283f847..9ec3d5190 100644 --- a/examples/engine/go.mod +++ b/examples/engine/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/engine -go 1.21 +go 1.22 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20240727093519-1a48f1ce43ec diff --git a/examples/events/go.mod b/examples/events/go.mod index f9aaf9d18..d912304ad 100644 --- a/examples/events/go.mod +++ b/examples/events/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/events -go 1.21 +go 1.22 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20240727093519-1a48f1ce43ec diff --git a/examples/iterator/go.mod b/examples/iterator/go.mod index 622f38c53..75d9f5462 100644 --- a/examples/iterator/go.mod +++ b/examples/iterator/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/iterator -go 1.21 +go 1.22 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20240727093519-1a48f1ce43ec diff --git a/examples/nft-d/go.mod b/examples/nft-d/go.mod index d9d8b6507..7bb0eff59 100644 --- a/examples/nft-d/go.mod +++ b/examples/nft-d/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/nft -go 1.21 +go 1.22 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20240727093519-1a48f1ce43ec diff --git a/examples/nft-nd-nns/go.mod b/examples/nft-nd-nns/go.mod index 3f95e8566..01dd8fad8 100644 --- a/examples/nft-nd-nns/go.mod +++ b/examples/nft-nd-nns/go.mod @@ -1,6 +1,6 @@ module github.com/nspcc-dev/neo-go/examples/nft-nd-nns -go 1.21 +go 1.22 require ( github.com/nspcc-dev/neo-go v0.102.1-0.20231020181554-d89c8801d689 diff --git a/examples/nft-nd/go.mod b/examples/nft-nd/go.mod index da95393ae..0c8f812b6 100644 --- a/examples/nft-nd/go.mod +++ b/examples/nft-nd/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/nft-nd -go 1.21 +go 1.22 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20240727093519-1a48f1ce43ec diff --git a/examples/oracle/go.mod b/examples/oracle/go.mod index 1f719a097..156d900b6 100644 --- a/examples/oracle/go.mod +++ b/examples/oracle/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/oracle -go 1.21 +go 1.22 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20240727093519-1a48f1ce43ec diff --git a/examples/runtime/go.mod b/examples/runtime/go.mod index 3b90e9622..6f47d8f44 100644 --- a/examples/runtime/go.mod +++ b/examples/runtime/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/runtime -go 1.21 +go 1.22 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20240727093519-1a48f1ce43ec diff --git a/examples/storage/go.mod b/examples/storage/go.mod index 99851cce0..5a27687f6 100644 --- a/examples/storage/go.mod +++ b/examples/storage/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/storage -go 1.21 +go 1.22 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20240727093519-1a48f1ce43ec diff --git a/examples/timer/go.mod b/examples/timer/go.mod index 1e7a09d7b..e6540b0dd 100644 --- a/examples/timer/go.mod +++ b/examples/timer/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/timer -go 1.21 +go 1.22 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20240727093519-1a48f1ce43ec diff --git a/examples/token/go.mod b/examples/token/go.mod index 6e86fae28..c8c1a0ba4 100644 --- a/examples/token/go.mod +++ b/examples/token/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/token -go 1.21 +go 1.22 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20240727093519-1a48f1ce43ec diff --git a/examples/zkp/cubic_circuit/go.mod b/examples/zkp/cubic_circuit/go.mod index 5ca7861c9..a690447ea 100644 --- a/examples/zkp/cubic_circuit/go.mod +++ b/examples/zkp/cubic_circuit/go.mod @@ -1,6 +1,6 @@ module github.com/nspcc-dev/neo-go/examples/zkp/cubic -go 1.21 +go 1.22 require ( github.com/consensys/gnark v0.10.0 diff --git a/examples/zkp/xor_compat/go.mod b/examples/zkp/xor_compat/go.mod index 29b882dec..e952a7978 100644 --- a/examples/zkp/xor_compat/go.mod +++ b/examples/zkp/xor_compat/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/examples/zkp/xor -go 1.21 +go 1.22 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20240727093519-1a48f1ce43ec diff --git a/go.mod b/go.mod index 435b33068..7c9045334 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/nspcc-dev/neo-go -go 1.21 +go 1.22 require ( github.com/chzyer/readline v1.5.1 diff --git a/internal/contracts/oracle_contract/go.mod b/internal/contracts/oracle_contract/go.mod index 8cd5d6312..86aa74a09 100644 --- a/internal/contracts/oracle_contract/go.mod +++ b/internal/contracts/oracle_contract/go.mod @@ -1,5 +1,5 @@ module github.com/nspcc-dev/neo-go/internal/examples/oracle -go 1.21 +go 1.22 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20240727093519-1a48f1ce43ec diff --git a/pkg/interop/go.mod b/pkg/interop/go.mod index eeda448b6..50bf310da 100644 --- a/pkg/interop/go.mod +++ b/pkg/interop/go.mod @@ -1,3 +1,3 @@ module github.com/nspcc-dev/neo-go/pkg/interop -go 1.21 +go 1.22 diff --git a/pkg/smartcontract/zkpbinding/binding.go b/pkg/smartcontract/zkpbinding/binding.go index bfb1b1a19..975f8b740 100644 --- a/pkg/smartcontract/zkpbinding/binding.go +++ b/pkg/smartcontract/zkpbinding/binding.go @@ -165,7 +165,7 @@ supportedstandards: []` // and dependency packages version needed for smart contract compilation. verifyGomod = `module verify -go 1.21 +go 1.22 require github.com/nspcc-dev/neo-go/pkg/interop v0.0.0-20231004150345-8849ccde2524 `