z_2_c_filetest.gno
0.30 Kb · 19 lines
1package main
2
3import (
4 "testing"
5
6 "gno.land/r/nt/commondao/v0"
7)
8
9const user = address("g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5") // @test1
10
11func main() {
12 // Calling with a user that was not invited
13 testing.SetRealm(testing.NewUserRealm(user))
14
15 commondao.New(cross, "Foo")
16}
17
18// Error:
19// unauthorized