neoneo-go/examples/check_witness.go
Jeroen Peeters 29f05c0edb chore: move examples out of separate folder
Imported from CityOfZion/neo-storm (7eb644415d4083572c4e74590da056319c3a54fb).
2019-08-14 18:58:41 +03:00

17 lines
362 B
Go

package check_witness_contract
import (
"github.com/CityOfZion/neo-go-sc/interop/runtime"
"github.com/CityOfZion/neo-go-sc/interop/util"
)
// Check if the invoker of the contract is the specified owner.
var owner = util.FromAddress("Aej1fe4mUgou48Zzup5j8sPrE3973cJ5oz")
func Main() bool {
if runtime.CheckWitness(owner) {
return true
}
return false
}