[#815] pkg/morph/netmap: Add Morph()
method
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
00caed8d3d
commit
74afcbe409
2 changed files with 10 additions and 0 deletions
|
@ -112,6 +112,11 @@ func New(c *client.StaticClient, opts ...Option) (*Client, error) {
|
||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Morph returns raw morph client.
|
||||||
|
func (c Client) Morph() *client.Client {
|
||||||
|
return c.client.Morph()
|
||||||
|
}
|
||||||
|
|
||||||
// WithAddPeerMethod returns a client constructor option that
|
// WithAddPeerMethod returns a client constructor option that
|
||||||
// specifies the method name of adding peer operation.
|
// specifies the method name of adding peer operation.
|
||||||
//
|
//
|
||||||
|
|
|
@ -53,6 +53,11 @@ func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8,
|
||||||
return &Wrapper{client: enhancedNetmapClient}, nil
|
return &Wrapper{client: enhancedNetmapClient}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Morph returns raw morph client.
|
||||||
|
func (w Wrapper) Morph() *client.Client {
|
||||||
|
return w.client.Morph()
|
||||||
|
}
|
||||||
|
|
||||||
// TryNotary returns option to enable
|
// TryNotary returns option to enable
|
||||||
// notary invocation tries.
|
// notary invocation tries.
|
||||||
func TryNotary() Option {
|
func TryNotary() Option {
|
||||||
|
|
Loading…
Reference in a new issue