z10d_upgrade_client_filetest.gno
0.56 Kb · 18 lines
1// PKGPATH: gno.land/r/aib/main
2package main
3
4
5import (
6 "gno.land/r/aib/ibc/core"
7)
8
9// UpgradeClient failure: malformed clientID rejected by host.ClientIdentifierValidator
10func main(cur realm) {
11 core.SetAdmin(cross(cur), "g1wymu47drhr0kuq2098m792lytgtj2nyx77yrsm")
12 core.AddRelayer(cross(cur), "g1wymu47drhr0kuq2098m792lytgtj2nyx77yrsm")
13
14 core.UpgradeClient(cross(cur), "abc!@#", nil, nil, nil, nil)
15}
16
17// Error:
18// validate client identifier: identifier abc!@# must contain only alphanumeric or the following characters: '.', '_', '+', '-', '#', '[', ']', '<', '>'