2020-05-18 12:01:00 +03:00
|
|
|
/*
|
2020-06-16 11:54:48 +03:00
|
|
|
Package engine allows to make contract calls.
|
2020-05-18 12:01:00 +03:00
|
|
|
It's roughly similar in function to ExecutionEngine class in the Neo .net
|
|
|
|
framework.
|
|
|
|
*/
|
2018-08-22 09:51:35 +02:00
|
|
|
package engine
|
|
|
|
|
2020-08-28 10:47:15 +03:00
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/interop"
|
|
|
|
|
2020-05-18 12:01:00 +03:00
|
|
|
// AppCall executes previously deployed blockchain contract with specified hash
|
|
|
|
// (160 bit in BE form represented as 20-byte slice) using provided arguments.
|
2020-07-24 10:46:21 +03:00
|
|
|
// It returns whatever this contract returns. This function uses
|
2020-05-18 12:01:00 +03:00
|
|
|
// `System.Contract.Call` syscall.
|
2020-08-28 10:47:15 +03:00
|
|
|
func AppCall(scriptHash interop.Hash160, method string, args ...interface{}) interface{} {
|
2020-01-27 10:59:57 +03:00
|
|
|
return nil
|
|
|
|
}
|