forked from TrueCloudLab/frostfs-node
[#496] morph/client: provide notary options on client creation
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
7cf0093012
commit
458fc4f5ae
5 changed files with 68 additions and 46 deletions
|
@ -23,8 +23,8 @@ type Wrapper struct {
|
|||
}
|
||||
|
||||
// NewFromMorph returns the wrapper instance from the raw morph client.
|
||||
func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8) (*Wrapper, error) {
|
||||
staticClient, err := client.NewStatic(cli, contract, fee)
|
||||
func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8, opts ...client.StaticClientOption) (*Wrapper, error) {
|
||||
staticClient, err := client.NewStatic(cli, contract, fee, opts...)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("can't create netmap static client: %w", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue