Skip to content

Commit

Permalink
fix: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hthieu1110 committed Feb 4, 2025
1 parent 8b10ade commit 754811b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions gnovm/cmd/gno/testdata/transpile/valid_transpile_file.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ package main
import "std"

func hello() {
std.GetChainID()
std.ChainID()
}

-- main.gno.gen.go.golden --
Expand All @@ -61,5 +61,5 @@ package main
import "github.com/gnolang/gno/gnovm/stdlibs/std"

func hello() {
std.GetChainID(nil)
std.ChainID(nil)
}
14 changes: 7 additions & 7 deletions gnovm/pkg/transpiler/transpiler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,13 +344,13 @@ func Float32bits(i float32) uint32
func testfunc() {
println(Float32bits(3.14159))
std.GetChainID()
std.ChainID()
}
func otherFunc() {
std := 1
// This is (incorrectly) changed for now.
std.GetChainID()
std.ChainID()
}
`,
expectedOutput: `
Expand All @@ -363,13 +363,13 @@ import "github.com/gnolang/gno/gnovm/stdlibs/std"
func testfunc() {
println(Float32bits(3.14159))
std.GetChainID(nil)
std.ChainID(nil)
}
func otherFunc() {
std := 1
// This is (incorrectly) changed for now.
std.GetChainID(nil)
std.ChainID(nil)
}
`,
expectedImports: []*ast.ImportSpec{
Expand All @@ -388,11 +388,11 @@ func otherFunc() {
source: `
package std
func GetChainID()
func ChainID()
func originCaller() string
func testfunc() {
GetChainID()
ChainID()
println(originCaller())
}
`,
Expand All @@ -403,7 +403,7 @@ func testfunc() {
package std
func testfunc() {
GetChainID(nil)
ChainID(nil)
println(X_originCaller(nil))
}
`,
Expand Down
2 changes: 1 addition & 1 deletion gnovm/tests/files/std5.gno
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func main() {
// panic: frame not found
// callerAt<VPBlock(3,52)>(n<VPBlock(1,0)>)
// gonative:std.callerAt
// std<VPBlock(2,0)>.GetCallerAt(2)
// std<VPBlock(2,0)>.CallerAt(2)
// std/native.gno:41
// main<VPBlock(1,0)>()
// main/files/std5.gno:10
Expand Down
2 changes: 1 addition & 1 deletion gnovm/tests/files/std8.gno
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func main() {
// panic: frame not found
// callerAt<VPBlock(3,52)>(n<VPBlock(1,0)>)
// gonative:std.callerAt
// std<VPBlock(2,0)>.GetCallerAt(4)
// std<VPBlock(2,0)>.CallerAt(4)
// std/native.gno:41
// fn<VPBlock(1,0)>()
// main/files/std8.gno:16
Expand Down
2 changes: 1 addition & 1 deletion gnovm/tests/files/zrealm_natbind0.gno
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func init() {
}

func main() {
// NOTE: this test uses GetHeight and GetChainID, which are "pure"
// NOTE: this test uses ChainHeight and ChainID, which are "pure"
// natively bound functions (ie. not indirections through a wrapper fn,
// to convert the types to builtin go/gno identifiers).
f := node.(func() int64)
Expand Down

0 comments on commit 754811b

Please sign in to comment.