From fa947b85a68efc64924fcfa4d11dbaac3e11bc2b Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Sat, 29 Jan 2022 14:21:57 +0300 Subject: [PATCH] [#749] morph/client: reuse `TestInvokePrm` in `InvokePrm` Signed-off-by: Evgenii Stratonikov --- pkg/morph/client/static.go | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/pkg/morph/client/static.go b/pkg/morph/client/static.go index 1df6c6512..64fde1c55 100644 --- a/pkg/morph/client/static.go +++ b/pkg/morph/client/static.go @@ -65,9 +65,7 @@ func (s StaticClient) Morph() *Client { // InvokePrm groups parameters of the Invoke operation. type InvokePrm struct { - // required parameters - method string - args []interface{} + TestInvokePrm // optional parameters InvokePrmOptional @@ -84,16 +82,6 @@ type InvokePrmOptional struct { hash *util.Uint256 } -// SetMethod sets method of the contract to call. -func (i *InvokePrm) SetMethod(method string) { - i.method = method -} - -// SetArgs sets arguments of the contact call. -func (i *InvokePrm) SetArgs(args ...interface{}) { - i.args = args -} - // SetHash sets optional hash of the transaction. // If hash is set and notary is enabled, StaticClient // uses it for notary nonce and `validUntilBlock`