From 6ce30c959ca60b6c245f6c0ede8f919718baf737 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 15 Sep 2021 13:45:28 +0300 Subject: [PATCH] [#627] morph: Add contract address getter to StaticClient Signed-off-by: Leonard Lyubich --- pkg/morph/client/static.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/morph/client/static.go b/pkg/morph/client/static.go index fe39fb68..30f19b25 100644 --- a/pkg/morph/client/static.go +++ b/pkg/morph/client/static.go @@ -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 {