neoneo-go/examples/check_witness/check_witness.go
Jeroen Peeters 9d983ec77b feat: add storage APi's and example
Imported from CityOfZion/neo-storm (86ac5c215a2c6ec710f2fd913e0ace63d6ea993e).
2019-08-14 18:57:31 +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
}