From 1ff1d4c57c8a0bf95fe0521fc15891904d090b96 Mon Sep 17 00:00:00 2001 From: moul <94029+moul@users.noreply.github.com> Date: Sat, 5 Oct 2024 23:20:45 +0200 Subject: [PATCH] chore: fixup Signed-off-by: moul <94029+moul@users.noreply.github.com> --- gnovm/tests/file.go | 1 + gnovm/tests/files/zrealm_natbind1_stdlibs.gno | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 gnovm/tests/files/zrealm_natbind1_stdlibs.gno diff --git a/gnovm/tests/file.go b/gnovm/tests/file.go index f6bd789f1bf..15bec958bd3 100644 --- a/gnovm/tests/file.go +++ b/gnovm/tests/file.go @@ -58,6 +58,7 @@ func TestContext(pkgPath string, send std.Coins) *teststd.TestExecContext { banker := newTestBanker(pkgAddr.Bech32(), pkgCoins) ctx := stdlibs.ExecContext{ ChainID: "dev", + ChainDomain: "tests.gno.land", Height: 123, Timestamp: 1234567890, Msg: nil, diff --git a/gnovm/tests/files/zrealm_natbind1_stdlibs.gno b/gnovm/tests/files/zrealm_natbind1_stdlibs.gno new file mode 100644 index 00000000000..f44b6ab4fcf --- /dev/null +++ b/gnovm/tests/files/zrealm_natbind1_stdlibs.gno @@ -0,0 +1,16 @@ +// PKGPATH: gno.land/r/test +package test + +import ( + "std" +) + +func main() { + println(std.GetChainDomain()) +} + +// Output: +// tests.gno.land + +// Realm: +// switchrealm["gno.land/r/test"]