Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

init.gno

0.24 Kb · 15 lines
 1package common
 2
 3import (
 4	"gno.land/r/gnoswap/common"
 5)
 6
 7func init(cur realm) {
 8	registerCommonV1(cur)
 9}
10
11func registerCommonV1(cur realm) {
12	common.RegisterInitializer(cross(cur), func(_ int, rlm realm) common.ICommon {
13		return NewCommonV1()
14	})
15}