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

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
remotes/fyrchik/container-alias-fee
Leonard Lyubich 2021-09-15 13:45:28 +03:00 committed by Alex Vanin
parent e558cdd9dd
commit 6ce30c959c
1 changed files with 5 additions and 0 deletions

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 {