[#812] morph/client: Add underline client getter in reputation wrapper

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
remotes/fyrchik/meta-pebble
Alex Vanin 2021-09-08 18:18:09 +03:00 committed by Alex Vanin
parent e2c2e27c60
commit a7f6a3df78
2 changed files with 10 additions and 0 deletions

View File

@ -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.
//

View File

@ -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 {