Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

access package

Function

AssertIsAuthorized

func AssertIsAuthorized(roleName string, caller address)

AssertIsAuthorized panics if the caller does not have the specified role. Also panics if the role does not exist.

Params

Command

gnokey query vm/qeval -remote "https://rpc.topaz.testnets.gno.land" -data "gno.land/r/gnoswap/access.AssertIsAuthorized(,)"

Result