forked from TrueCloudLab/neoneo-go
9d983ec77b
Imported from CityOfZion/neo-storm (86ac5c215a2c6ec710f2fd913e0ace63d6ea993e).
17 lines
362 B
Go
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
|
|
}
|