mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-25 03:56:34 +00:00
cee1836183
Contract can have Hash160, Hash256, Signature etc. types which all map to a `[]byte` in Go. Having synonyms helps us to generate proper manifest file.
16 lines
567 B
Go
16 lines
567 B
Go
/*
|
|
Package engine allows to make contract calls.
|
|
It's roughly similar in function to ExecutionEngine class in the Neo .net
|
|
framework.
|
|
*/
|
|
package engine
|
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/interop"
|
|
|
|
// AppCall executes previously deployed blockchain contract with specified hash
|
|
// (160 bit in BE form represented as 20-byte slice) using provided arguments.
|
|
// It returns whatever this contract returns. This function uses
|
|
// `System.Contract.Call` syscall.
|
|
func AppCall(scriptHash interop.Hash160, method string, args ...interface{}) interface{} {
|
|
return nil
|
|
}
|