github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/internal/basicchain/testdata/invoke/invokescript_contract.go (about)

     1  package invoke
     2  
     3  import "github.com/nspcc-dev/neo-go/pkg/interop/runtime"
     4  
     5  // This contract is used to test `invokescript` and `invokefunction` RPC-calls
     6  func Main() int {
     7  	// h1 and h2 are just random uint160 hashes
     8  	h1 := []byte{1, 12, 3, 14, 5, 6, 12, 13, 2, 14, 15, 13, 3, 14, 7, 9, 0, 0, 0, 0}
     9  	if !runtime.CheckWitness(h1) {
    10  		return 1
    11  	}
    12  	h2 := []byte{13, 15, 3, 2, 9, 0, 2, 1, 3, 7, 3, 4, 5, 2, 1, 0, 14, 6, 12, 9}
    13  	if !runtime.CheckWitness(h2) {
    14  		return 2
    15  	}
    16  	return 3
    17  }