Search Apps Documentation Source Content File Folder Download Copy Actions Download

z4d_register_app_filetest.gno

0.40 Kb · 15 lines
 1// PKGPATH: gno.land/r/aib/main
 2package main
 3
 4import (
 5	appstesting "gno.land/r/aib/ibc/apps/testing"
 6	"gno.land/r/aib/ibc/core"
 7)
 8
 9// RegisterApp fails because portID is not alphanumeric
10func main(cur realm) {
11	core.RegisterApp(cross(cur), "gno.land/r/aib/ibc", appstesting.NewApp(cross(cur)))
12}
13
14// Error:
15// invalid portID: validate port identifier: identifier gno.land/r/aib/ibc cannot contain separator '/'