[#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
|
@ -26,10 +26,9 @@ func TestCheckFormat(t *testing.T) {
|
|||
|
||||
require.Error(t, CheckFormat(c))
|
||||
|
||||
wallet, err := owner.NEO3WalletFromPublicKey(&test.DecodeKey(-1).PublicKey)
|
||||
require.NoError(t, err)
|
||||
oid := owner.NewIDFromPublicKey(&test.DecodeKey(-1).PublicKey)
|
||||
|
||||
c.SetOwnerID(owner.NewIDFromNeo3Wallet(wallet))
|
||||
c.SetOwnerID(oid)
|
||||
|
||||
// set incorrect nonce
|
||||
cV2 := c.ToV2()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue