Skip to content

Commit 8a9fb63

Browse files
committed
Fix failing functional test
1 parent 263ff69 commit 8a9fb63

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

test/functional/test_framework/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ def init_mintlayer_types():
226226
"TxAdditionalInfo": {
227227
"type": "struct",
228228
"type_mapping": [
229-
["token_info", "BTreeMap<H256, TokenAdditionalInfo>"],
230229
["pool_info", "BTreeMap<H256, PoolAdditionalInfo>"],
231230
["order_info", "BTreeMap<H256, OrderAdditionalInfo>"],
232231
],

test/functional/wallet_htlc_refund.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,6 @@ async def async_test(self):
157157
assert_in("Coins amount: 0", balance)
158158
assert_in(f"Token: {token_id} amount: {amount_to_mint}", balance)
159159

160-
token_additional_info_for_ptx = [
161-
(
162-
token_id_dec_array,
163-
{
164-
'num_decimals': token_number_of_decimals,
165-
'ticker': token_ticker.encode('utf-8')
166-
}
167-
)
168-
]
169-
170160
########################################################################################
171161
# Setup Alice's htlc
172162
alice_secret = bytes([random.randint(0, 255) for _ in range(32)])
@@ -197,7 +187,7 @@ async def async_test(self):
197187
'input_utxos': alice_htlc_outputs,
198188
'destinations': [refund_dest_obj, alice_htlc_change_dest],
199189
'htlc_secrets': [None, None],
200-
'additional_info': {'token_info': token_additional_info_for_ptx, 'pool_info': [], 'order_info': []}
190+
'additional_info': {'pool_info': [], 'order_info': []}
201191
}
202192
alice_refund_tx_hex = scalecodec.base.RuntimeConfiguration().create_scale_object('PartiallySignedTransaction').encode(alice_refund_ptx).to_hex()[2:]
203193

@@ -226,7 +216,7 @@ async def async_test(self):
226216
'input_utxos': bob_htlc_outputs,
227217
'destinations': [refund_dest_obj, bob_htlc_change_dest],
228218
'htlc_secrets': [None, None],
229-
'additional_info': {'token_info': token_additional_info_for_ptx, 'pool_info': [], 'order_info': []}
219+
'additional_info': {'pool_info': [], 'order_info': []}
230220
}
231221
bob_refund_tx_hex = scalecodec.base.RuntimeConfiguration().create_scale_object('PartiallySignedTransaction').encode(bob_refund_ptx).to_hex()[2:]
232222

0 commit comments

Comments
 (0)