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

z_set_required_account_amount_02_filetest.gno

0.52 Kb · 20 lines
 1// PKGPATH: gno.land/r/gnoland/boards2/v0/filetests/z_set_required_account_amount_02_filetest
 2
 3package z_set_required_account_amount_02_filetest
 4
 5import (
 6	"testing"
 7
 8	boards2 "gno.land/r/gnoland/boards2/v0"
 9)
10
11const owner address = "g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj" // @test2
12
13func main(cur realm) {
14	testing.SetRealm(testing.NewUserRealm(owner))
15
16	boards2.SetRequiredAccountAmount(cross(cur), 1_000_000)
17}
18
19// Error:
20// unauthorized, user g1us8428u2a5satrlxzagqqa5m6vmuze025anjlj doesn't have the required permission