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

/innerowner package

Overview

Package innerowner persists an *Inner that lives in this realm. Foreign-realm callers use GetInner() to obtain a pointer to it. When they pass it as the receiver of a /p/ method, PushFrameCall's borrow rule 2 fires and m.Realm shifts to this realm.

Function

GetInner

func GetInner() *p_closurecap.Inner

GetInner returns the persisted Inner. Non-crossing: the caller's realm stays current, but the returned *Inner carries PkgID = innerowner from its init-time allocation.

Command

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

Result