Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: '1.25'
go-version: '1.26'
cache: true

- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25'
go-version: '1.26'
cache: true

- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion bbq/compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (c *Compiler[E, _]) addGlobal(name string, kind bbq.GlobalKind) bbq.Global
case bbq.GlobalKindContract:
global = bbq.NewContractGlobal(c.Config.MemoryGauge, name, nil, uint16(count))
default:
panic(errors.NewDefaultUserError("unsupported global kind %#q", kind))
panic(errors.NewDefaultUserError("unsupported global kind %#q", kind.String()))
}

c.Globals[name] = global
Expand Down
2 changes: 2 additions & 0 deletions bbq/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import (
"github.com/onflow/cadence/common"
)

//go:generate stringer -type=GlobalKind

type GlobalKind int

const (
Expand Down
26 changes: 26 additions & 0 deletions bbq/globalkind_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/onflow/cadence

go 1.24.0

toolchain go1.24.3
go 1.26.0

require (
github.com/SaveTheRbtz/mph v0.1.1-0.20240117162131-4166ec7869bc
Expand Down
2 changes: 1 addition & 1 deletion tools/accounts-script/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/onflow/cadence/tools/accounts-script

go 1.24
go 1.26

require (
github.com/ethereum/go-ethereum v1.13.10
Expand Down
2 changes: 1 addition & 1 deletion tools/compatibility-check/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/onflow/cadence/tools/compatibility_check

go 1.25.0
go 1.26.0

require (
github.com/onflow/cadence v1.8.6
Expand Down
2 changes: 1 addition & 1 deletion tools/constructorcheck/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/onflow/cadence/tools/constructorcheck

go 1.24
go 1.26

require golang.org/x/tools v0.32.0

Expand Down
2 changes: 1 addition & 1 deletion tools/get-contracts/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/onflow/cadence/tools/get-contracts

go 1.24
go 1.26
2 changes: 1 addition & 1 deletion tools/go-apply-expr-diff/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/onflow/cadence/tools/go-apply-expr-diff

go 1.24
go 1.26

require (
github.com/dave/dst v0.27.3
Expand Down
2 changes: 1 addition & 1 deletion tools/golangci-lint/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/onflow/cadence/tools/golangci-lint

go 1.24
go 1.26

require github.com/golangci/golangci-lint/v2 v2.1.6

Expand Down
2 changes: 1 addition & 1 deletion tools/maprange/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/onflow/cadence/tools/maprange

go 1.24
go 1.26

require golang.org/x/tools v0.32.0

Expand Down
2 changes: 1 addition & 1 deletion tools/storage-explorer/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/onflow/cadence/tools/storage-explorer

go 1.23
go 1.26

require (
github.com/gorilla/mux v1.8.1
Expand Down
2 changes: 1 addition & 1 deletion tools/unkeyed/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/onflow/cadence/tools/unkeyed

go 1.24
go 1.26

require (
golang.org/x/exp/typeparams v0.0.0-20250210185358-939b2ce775ac
Expand Down
Loading