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

assert.gno

0.22 Kb · 13 lines
 1package core
 2
 3func assertIsRlmCurrent(_ int, rlm realm) {
 4	if !rlm.IsCurrent() {
 5		panic(ErrSpoofedRealm)
 6	}
 7}
 8
 9func assertIsProxyRealm(_ int, rlm realm) {
10	if rlm.PkgPath() != proxyPkgPath {
11		panic(ErrNotProxyRealm)
12	}
13}