Skip to content

Commit 734e2de

Browse files
committed
Uncomment NFT wallet functional test
1 parent 6d59247 commit 734e2de

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

test/functional/wallet_nfts.py

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -119,27 +119,25 @@ async def async_test(self):
119119
assert_in("Success", await wallet.sync())
120120

121121

122-
# TODO: add support for tokens v1
123-
# See https://github.com/mintlayer/mintlayer-core/issues/1237
124-
#self.log.info(await wallet.get_balance())
125-
#assert_in(f"{nft_id} amount: 1", await wallet.get_balance())
126-
127-
## create a new account and send some tokens to it
128-
#await wallet.create_new_account()
129-
#await wallet.select_account(1)
130-
#address = await wallet.new_address()
131-
132-
#await wallet.select_account(0)
133-
#assert_in(f"{nft_id} amount: 1", await wallet.get_balance())
134-
#output = await wallet.send_tokens_to_address(nft_id, address, 1)
135-
#self.log.info(output)
136-
#assert_in("The transaction was submitted successfully", output)
137-
138-
#self.generate_block()
139-
#assert_in("Success", await wallet.sync())
140-
141-
## check the new balance nft is not present
142-
#assert nft_id not in await wallet.get_balance()
122+
self.log.info(await wallet.get_balance())
123+
assert_in(f"{nft_id} amount: 1", await wallet.get_balance())
124+
125+
# create a new account and send some tokens to it
126+
await wallet.create_new_account()
127+
await wallet.select_account(1)
128+
address = await wallet.new_address()
129+
130+
await wallet.select_account(0)
131+
assert_in(f"{nft_id} amount: 1", await wallet.get_balance())
132+
output = await wallet.send_tokens_to_address(nft_id, address, 1)
133+
self.log.info(output)
134+
assert_in("The transaction was submitted successfully", output)
135+
136+
self.generate_block()
137+
assert_in("Success", await wallet.sync())
138+
139+
# check the new balance nft is not present
140+
assert nft_id not in await wallet.get_balance()
143141

144142
if __name__ == '__main__':
145143
WalletNfts().main()

0 commit comments

Comments
 (0)