github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/examples/gno.land/p/demo/grc/grc721/util.gno (about) 1 package grc721 2 3 import ( 4 "std" 5 ) 6 7 var zeroAddress = std.Address("") 8 9 func isValidAddress(addr std.Address) error { 10 if !addr.IsValid() { 11 return ErrInvalidAddress 12 } 13 return nil 14 } 15 16 func emit(event interface{}) { 17 // TODO: setup a pubsub system here? 18 }