mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-02 09:45:50 +00:00
28e0661f82
Do not require contract hash to be known at compile time.
14 lines
508 B
Go
14 lines
508 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
|
|
|
|
// 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 []byte, method string, args ...interface{}) interface{} {
|
|
return nil
|
|
}
|