interop: update AppCall comment

Do not require contract hash to be known at compile time.
This commit is contained in:
Evgenii Stratonikov 2020-07-24 10:46:21 +03:00
parent d2ddf7b7cb
commit 28e0661f82

View file

@ -7,11 +7,7 @@ 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. 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
// It returns whatever this contract returns. This function uses
// `System.Contract.Call` syscall.
func AppCall(scriptHash []byte, method string, args ...interface{}) interface{} {
return nil