From 1860f5040c28abac37e545fc4ff4ab00a2a95ab4 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 15 Sep 2021 13:47:00 +0300 Subject: [PATCH] [#627] morph: Define partial interface of StaticClient type There is a need to inherit some methods of `StaticClient` type. In order to not inherit all method via type embedding we can group sub-set of methods and inherit it. Signed-off-by: Leonard Lyubich --- pkg/morph/client/internal/static.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pkg/morph/client/internal/static.go diff --git a/pkg/morph/client/internal/static.go b/pkg/morph/client/internal/static.go new file mode 100644 index 000000000..0bba1b320 --- /dev/null +++ b/pkg/morph/client/internal/static.go @@ -0,0 +1,11 @@ +package internal + +import ( + "github.com/nspcc-dev/neo-go/pkg/util" +) + +// StaticClient groups client.StaticClient type interface methods which are needed to be inherited +// by upper-level client instances. +type StaticClient interface { + ContractAddress() util.Uint160 +}