github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/examples/gno.land/p/demo/grc/grc1155/util.gno (about)

     1  package grc1155
     2  
     3  import (
     4  	"std"
     5  )
     6  
     7  const zeroAddress std.Address = ""
     8  
     9  func isValidAddress(addr std.Address) bool {
    10  	if !addr.IsValid() {
    11  		return false
    12  	}
    13  	return true
    14  }
    15  
    16  func emit(event interface{}) {
    17  	// TODO: setup a pubsub system here?
    18  }