[#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:
Leonard Lyubich 2021-05-31 21:10:54 +03:00 committed by Alex Vanin
parent f76083484b
commit 48d934ecf8

View file

@ -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)
}