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.30 Kb · 17 lines
 1package core
 2
 3import (
 4	core "gno.land/r/onbloc/ibc/union/core"
 5)
 6
 7func assertIsRlmCurrent(_ int, rlm realm) {
 8	if !rlm.IsCurrent() {
 9		panic(errSpoofedRealm)
10	}
11}
12
13func assertPacketDataSize(data []byte) {
14	if !core.IsValidPacketDataSize(data) {
15		panic(makeError(core.ErrPacketCombinedDataTooLarge))
16	}
17}