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}