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

crossrealm_b package

Function

TrySubOn

func TrySubOn(_ int, rlm realm)

TrySubOn attempts to mint a sub-realm token on a passed-in realm value. Non-crossing (`_ int` discriminator), so the caller's cur remains the topmost crossing cur — but borrow rule #1 runs this body with m.Realm = crossrealm_b, so rlm.Sub must reject: a foreign realm must not mint sub-identities in the caller's namespace.

Params

Command

gnokey query vm/qeval -remote "https://api.gno.berty.io:443" -data "gno.land/r/tests/vm/crossrealm_b.TrySubOn(,)"

Result