mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 03:45:38 +08:00
fixed rest_register_transfer integration test (needed to check a reencoded address)
This commit is contained in:
@@ -30,6 +30,7 @@ import blockstack_profiles
|
||||
import sys
|
||||
import keylib
|
||||
import time
|
||||
import virtualchain
|
||||
|
||||
from keylib import ECPrivateKey, ECPublicKey
|
||||
|
||||
@@ -204,8 +205,10 @@ def scenario( wallets, **kw ):
|
||||
print json.dumps(res)
|
||||
return False
|
||||
|
||||
if res['response']['address'] != wallets[7].addr:
|
||||
address_testnet = virtualchain.address_reencode(str(res['response']['address']), network='testnet')
|
||||
if address_testnet != wallets[7].addr:
|
||||
res['test'] = 'Failed to transfer name to new address {}'.format(wallets[7].addr)
|
||||
res['owner_address_testnet'] = address_testnet
|
||||
print json.dumps(res)
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user