2020-05-18 09:01:00 +00:00
|
|
|
/*
|
2020-06-16 08:54:48 +00:00
|
|
|
Package engine allows to make contract calls.
|
2020-05-18 09:01:00 +00:00
|
|
|
It's roughly similar in function to ExecutionEngine class in the Neo .net
|
|
|
|
framework.
|
|
|
|
*/
|
2018-08-22 07:51:35 +00:00
|
|
|
package engine
|
|
|
|
|
2020-05-18 09:01:00 +00:00
|
|
|
// 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. Even though this function accepts
|
|
|
|
// a slice for scriptHash you can only use it for contracts known at
|
|
|
|
// compile time, because there is a significant difference between static and
|
|
|
|
// dynamic calls in Neo (contracts should have a special property declared
|
|
|
|
// and paid for to be able to use dynamic calls). This function uses
|
|
|
|
// `System.Contract.Call` syscall.
|
2020-07-23 15:13:02 +00:00
|
|
|
func AppCall(scriptHash []byte, method string, args ...interface{}) interface{} {
|
2020-01-27 07:59:57 +00:00
|
|
|
return nil
|
|
|
|
}
|