counter
func() int- OID
- 089230…bf58:7
counter details
init.1
func()- OID
- 089230…bf58:4
init.1 details
GetCounter
func() func(...)GetCounter returns the persisted closure. The caller invokes it directly — because the closure's FuncLit lives in /p/ p\_closurecap, PushFrameCall's borrow rule does NOT switch m.Realm to persistedcap at invocation. The closure body's write to the captured HIV (PkgID = persistedcap, persisted) therefore runs under the caller's m.Realm, which is the persisted-closure-capture cross-realm case. SECURITY: deliberate VM-parity-test infrastructure — do NOT copy this pattern in production code. See gno.land/r/tests/vm/crossrealm Closure for the broader rationale.
- OID
- 089230…bf58:6