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/v1 package

Function

AssertHasAnyRole

func AssertHasAnyRole(caller address, roleNames ...string)

AssertHasAnyRole checks roleNames in order and panics unless caller matches one. It panics immediately if a checked role is absent, even if a later role might match.

Parameters:

  • caller: address compared against each configured role address
  • roleNames: ordered role identifiers to check; each missing role causes a panic

Params

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/access/v1.AssertHasAnyRole(,)"

Result