[#1100] *: Adopt new SDK's owner.ID
API
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
4b5404047c
commit
fee2f5a330
21 changed files with 32 additions and 134 deletions
|
@ -204,13 +204,8 @@ func (x putSubnetEvent) ReadCreator(id *owner.ID) error {
|
|||
return err
|
||||
}
|
||||
|
||||
wal, err := owner.NEO3WalletFromPublicKey((*ecdsa.PublicKey)(key))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// it would be better if we could do it not like this
|
||||
*id = *owner.NewIDFromNeo3Wallet(wal)
|
||||
*id = *owner.NewIDFromPublicKey((*ecdsa.PublicKey)(key))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue