From c0de2bf9e5e4778d2fc1b811b1c108dca40dac9a Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Mon, 16 Nov 2020 17:55:48 +0300 Subject: [PATCH] [#199] sdk/owner: Correct linter's remarks Signed-off-by: Leonard Lyubich --- pkg/owner/id.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/owner/id.go b/pkg/owner/id.go index e6a240d..3606117 100644 --- a/pkg/owner/id.go +++ b/pkg/owner/id.go @@ -1,6 +1,8 @@ package owner import ( + "fmt" + "github.com/mr-tron/base58" "github.com/nspcc-dev/neo-go/pkg/encoding/address" "github.com/nspcc-dev/neofs-api-go/v2/refs" @@ -38,7 +40,7 @@ func (id *ID) String() string { return base58.Encode((*refs.OwnerID)(id).GetValue()) } -func ScriptHashBE(id *ID) ([]byte, error) { +func ScriptHashBE(id fmt.Stringer) ([]byte, error) { addr, err := address.StringToUint160(id.String()) if err != nil { return nil, err