[#14] Adopt stackitems in morph requests
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
0c06eafc60
commit
29d6ababae
9 changed files with 23 additions and 22 deletions
|
@ -3,8 +3,8 @@ package client
|
|||
import (
|
||||
"errors"
|
||||
|
||||
sc "github.com/nspcc-dev/neo-go/pkg/smartcontract"
|
||||
"github.com/nspcc-dev/neo-go/pkg/util"
|
||||
"github.com/nspcc-dev/neo-go/pkg/vm/stackitem"
|
||||
)
|
||||
|
||||
// StaticClient is a wrapper over Neo:Morph client
|
||||
|
@ -53,7 +53,7 @@ func (s StaticClient) Invoke(method string, args ...interface{}) error {
|
|||
}
|
||||
|
||||
// TestInvoke calls TestInvoke method of Client with static internal script hash.
|
||||
func (s StaticClient) TestInvoke(method string, args ...interface{}) ([]sc.Parameter, error) {
|
||||
func (s StaticClient) TestInvoke(method string, args ...interface{}) ([]stackitem.Item, error) {
|
||||
return s.client.TestInvoke(
|
||||
s.scScriptHash,
|
||||
method,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue