z1b_create_client_filetest.gno
0.46 Kb · 25 lines
1// PKGPATH: gno.land/r/aib/main
2package main
3
4import (
5 "gno.land/p/aib/ibc/lightclient"
6 "gno.land/r/aib/ibc/core"
7)
8
9type SoloMachine struct{}
10
11func (SoloMachine) ClientType() string {
12 return lightclient.Solomachine
13}
14
15func (SoloMachine) ValidateBasic() error {
16 return nil
17}
18
19// CreateClient w/ unhandled light client type
20func main(cur realm) {
21 core.CreateClient(cross(cur), SoloMachine{}, SoloMachine{})
22}
23
24// Error:
25// unhandled light client type 06-solomachine