[#556] morph/neofsid: Construct static client with enabled notary
Pass `TryNotary()` option to constructor of the static client of the NeoFS ID contract in `NewFromMorph`. This will allow to use client wrapper for key management in IR application. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
f76083484b
commit
48d934ecf8
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ type ClientWrapper neofsid.Client
|
|||
|
||||
// NewFromMorph wraps client to work with NeoFS ID contract.
|
||||
func NewFromMorph(cli *client.Client, contract util.Uint160, fee fixedn.Fixed8) (*ClientWrapper, error) {
|
||||
sc, err := client.NewStatic(cli, contract, fee)
|
||||
sc, err := client.NewStatic(cli, contract, fee, client.TryNotary())
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("could not create client of NeoFS ID contract: %w", err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue