Skip to content

Commit

Permalink
chore(gnovm): add test on std.GetOrigPkgAddr (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
albttx authored and moul committed May 19, 2023
1 parent bb50c3d commit 333b5ea
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions gnovm/tests/files/zrealm_std6.gno
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// PKGPATH: gno.land/r/test
package test

import (
"std"
)

var (
realmAddr std.Address = std.GetOrigPkgAddr()
)

func main() {
println(realmAddr)
}

// Output:
// g148esskg7wzxxw6axwv4j5nkgjzdp6v4zmy3pwc

0 comments on commit 333b5ea

Please sign in to comment.