diff --git a/examples/gno.land/r/demo/sessions/sessions.gno b/examples/gno.land/r/demo/sessions/sessions.gno index 085d717d907..e4e9b129cfa 100644 --- a/examples/gno.land/r/demo/sessions/sessions.gno +++ b/examples/gno.land/r/demo/sessions/sessions.gno @@ -16,6 +16,8 @@ var ( source std.Realm ) +const NoExpiry = int64(0) + func init() { sessions = make(map[string]map[string]*time.Time) source = std.CurrentRealm() diff --git a/examples/gno.land/r/demo/sessions/sessions_test.gno b/examples/gno.land/r/demo/sessions/sessions_test.gno index 9f218cbd855..361e6865b09 100644 --- a/examples/gno.land/r/demo/sessions/sessions_test.gno +++ b/examples/gno.land/r/demo/sessions/sessions_test.gno @@ -32,7 +32,7 @@ func TestSessions(t *testing.T) { { std.TestSetRealm(aliceRealm) - Login(bobAddr, nil) + Login(bobAddr, NoExpiry) std.TestSetRealm(bobRealm)