forked from TrueCloudLab/frostfs-api-go
[#199] sdk/owner: Correct linter's remarks
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
1ff8b3fd94
commit
c0de2bf9e5
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue