From b6e5aac6045a3159b1eb9765da2f833b2003eadd Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Fri, 1 Apr 2022 20:28:49 +0300 Subject: [PATCH] [#1170] pkg/morph: Delete unused function Signed-off-by: Pavel Karpy --- pkg/morph/client/client.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pkg/morph/client/client.go b/pkg/morph/client/client.go index 1de95f7b0..990941cbb 100644 --- a/pkg/morph/client/client.go +++ b/pkg/morph/client/client.go @@ -161,15 +161,6 @@ func wrapNeoFSError(err error) error { return neofsError{err} } -// unwraps NeoFS-specific error if err is type of neofsError. Otherwise, returns nil. -func unwrapNeoFSError(err error) error { - if e := new(neofsError); errors.As(err, e) { - return e.err - } - - return nil -} - // Invoke invokes contract method by sending transaction into blockchain. // Supported args types: int64, string, util.Uint160, []byte and bool. func (c *Client) Invoke(contract util.Uint160, fee fixedn.Fixed8, method string, args ...interface{}) error {