forked from TrueCloudLab/frostfs-node
[#404] morph/client: Support notary calls in wrappers
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
71dce97b76
commit
83980ccb85
4 changed files with 48 additions and 7 deletions
|
@ -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...,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue