forked from TrueCloudLab/frostfs-api-go
[#128] sdk: Use owner ID instead of NEO3Wallet
Replace owner.NEO3Wallet usage with owner.ID usage. Functions that process the wallet address convert it to the owner identifier through the public method. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
c9d38aa2e1
commit
63c8d6e9ea
8 changed files with 101 additions and 89 deletions
|
@ -2,7 +2,6 @@ package container
|
|||
|
||||
import (
|
||||
"github.com/nspcc-dev/neofs-api-go/v2/container"
|
||||
"github.com/nspcc-dev/neofs-api-go/v2/refs"
|
||||
)
|
||||
|
||||
type Container struct {
|
||||
|
@ -24,10 +23,7 @@ func New(opts ...NewOption) (*Container, error) {
|
|||
}
|
||||
|
||||
if cnrOptions.owner != nil {
|
||||
owner := new(refs.OwnerID)
|
||||
owner.SetValue(cnrOptions.owner[:])
|
||||
|
||||
cnr.SetOwnerID(owner)
|
||||
cnr.SetOwnerID(cnrOptions.owner.ToV2())
|
||||
}
|
||||
|
||||
attributes := make([]*container.Attribute, len(cnrOptions.attributes))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue