From a129fc98dab59f5f319b0a6b556b419dd22fec84 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Fri, 13 May 2022 21:14:38 +0300 Subject: [PATCH] [#1224] morph: Add configuration getters Includes `WithNotary` and `IsAlpha` methods to the `StaticClient`. Signed-off-by: Pavel Karpy --- pkg/morph/client/static.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkg/morph/client/static.go b/pkg/morph/client/static.go index 64fde1c5..ccc805f7 100644 --- a/pkg/morph/client/static.go +++ b/pkg/morph/client/static.go @@ -30,6 +30,20 @@ type staticOpts struct { fees fees } +// WithNotary returns notary status of the client. +// +// See also TryNotary. +func (s *StaticClient) WithNotary() bool { + return s.tryNotary +} + +// IsAlpha returns Alphabet status of the client. +// +// See also AsAlphabet. +func (s *StaticClient) IsAlpha() bool { + return s.alpha +} + // StaticClientOption allows to set an optional // parameter of StaticClient. type StaticClientOption func(*staticOpts)