Skip to content

Commit

Permalink
update to 1.21 in a few more places
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl committed Feb 15, 2024
1 parent b01e63c commit 2f02ed7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ The gno repository is primarily based on Go (Golang) and Gno.

The primary tech stack for working on the repository:

- Go (version 1.20+)
- Go (version 1.21+)
- make (for using Makefile configurations)

It is recommended to work on a Unix environment, as most of the tooling is built around ready-made tools in Unix (WSL2
Expand Down
2 changes: 1 addition & 1 deletion gnovm/cmd/gno/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func execTest(cfg *testCfg, args []string, io commands.IO) error {

// go.mod
modPath := filepath.Join(tempdirRoot, "go.mod")
err = makeTestGoMod(modPath, gno.ImportPrefix, "1.20")
err = makeTestGoMod(modPath, gno.ImportPrefix, "1.21")
if err != nil {
return fmt.Errorf("write .mod file: %w", err)
}
Expand Down
4 changes: 1 addition & 3 deletions gnovm/stdlibs/std/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ func DecodeBech32(addr crypto.Bech32Address) (prefix string, bytes [20]byte, ok
if err != nil || len(bz) != 20 {
return "", [20]byte{}, false
}
// TODO: can be simplified when we switch to go1.20 in go mod to be a simple [20]byte(bz)
copy(bytes[:], bz)
return prefix, bytes, true
return prefix, [20]byte(bz), true

Check warning on line 176 in gnovm/stdlibs/std/native.go

View check run for this annotation

Codecov / codecov/patch

gnovm/stdlibs/std/native.go#L176

Added line #L176 was not covered by tests
}

func typedString(s gno.StringValue) gno.TypedValue {
Expand Down

0 comments on commit 2f02ed7

Please sign in to comment.