From 48d934ecf8febeb95796f60fbe91ec84b6e8cab9 Mon Sep 17 00:00:00 2001
From: Leonard Lyubich <leonard@nspcc.ru>
Date: Mon, 31 May 2021 21:10:54 +0300
Subject: [PATCH] [#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>
---
 pkg/morph/client/neofsid/wrapper/client.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/morph/client/neofsid/wrapper/client.go b/pkg/morph/client/neofsid/wrapper/client.go
index 1678a25ef..44a30e6c2 100644
--- a/pkg/morph/client/neofsid/wrapper/client.go
+++ b/pkg/morph/client/neofsid/wrapper/client.go
@@ -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)
 	}