[#627] morph: Add contract address getter to StaticClient

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-09-15 13:45:28 +03:00 committed by Alex Vanin
parent e558cdd9dd
commit 6ce30c959c

View file

@ -102,6 +102,11 @@ func (s StaticClient) TestInvoke(method string, args ...interface{}) ([]stackite
)
}
// ContractAddress returns the address of the associated contract.
func (s StaticClient) ContractAddress() util.Uint160 {
return s.scScriptHash
}
// TryNotary returns option to enable
// notary invocation tries.
func TryNotary() StaticClientOption {