[#404] morph/client: Support notary calls in wrappers

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-02-25 19:49:05 +03:00 committed by Alex Vanin
parent 71dce97b76
commit 83980ccb85
4 changed files with 48 additions and 7 deletions

View file

@ -61,3 +61,14 @@ func (s StaticClient) TestInvoke(method string, args ...interface{}) ([]stackite
args...,
)
}
// NotaryInvoke calls NotaryInvoke method of Client with static internal
// script hash. Returns error if notary support was not enabled in underlying
// moprh client.
func (s StaticClient) NotaryInvoke(method string, args ...interface{}) error {
return s.client.NotaryInvoke(
s.scScriptHash,
method,
args...,
)
}