Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

z_admin_from_realm_filetest.gno

0.35 Kb · 14 lines
 1// PKGPATH: gno.land/r/demo/intruder
 2package intruder
 3
 4// A foreign realm cannot use admin functions: the caller seen by Bouncer
 5// is this realm's address, which is not the admin.
 6
 7import bouncer "gno.land/r/g19wmd95cwm3s0w0c5592tgu3zh4zgrtlggvugnj/bouncer/v2"
 8
 9func main(cur realm) {
10	bouncer.AddAttester(cross(cur), cur.Address())
11}
12
13// Error:
14// admin only