z1j_create_client_filetest.gno
0.39 Kb · 24 lines
1// PKGPATH: gno.land/r/aib/main
2package main
3
4import (
5 "gno.land/r/aib/ibc/core"
6)
7
8type X struct{}
9
10func (X) ClientType() string {
11 return "wrong--"
12}
13
14func (X) ValidateBasic() error {
15 return nil
16}
17
18// CreateClient w/ invalid client type
19func main(cur realm) {
20 core.CreateClient(cross(cur), X{}, X{})
21}
22
23// Error:
24// client type does not meet naming constraints: not a valid clientID: wrong---0