diff --git a/pkg/morph/client/reputation/client.go b/pkg/morph/client/reputation/client.go index 34b5290c..395fcc06 100644 --- a/pkg/morph/client/reputation/client.go +++ b/pkg/morph/client/reputation/client.go @@ -71,6 +71,11 @@ func New(c *client.StaticClient, opts ...Option) (*Client, error) { return res, nil } +// Morph returns raw morph client. +func (c Client) Morph() *client.Client { + return c.client.Morph() +} + // WithPutMethod returns a client constructor option that // specifies the method name to put reputation value. // diff --git a/pkg/morph/client/reputation/wrapper/wrapper.go b/pkg/morph/client/reputation/wrapper/wrapper.go index 9bcbb618..e7ded7f2 100644 --- a/pkg/morph/client/reputation/wrapper/wrapper.go +++ b/pkg/morph/client/reputation/wrapper/wrapper.go @@ -23,6 +23,11 @@ func defaultOpts() *opts { return new(opts) } +// Morph returns raw morph client. +func (w ClientWrapper) Morph() *client.Client { + return (reputation.Client)(w).Morph() +} + // TryNotary returns option to enable // notary invocation tries. func TryNotary() Option {