From aeadb4d85201f230e3d1d453b335c9e4456adc46 Mon Sep 17 00:00:00 2001 From: yihuang Date: Tue, 20 Feb 2024 17:36:14 +0800 Subject: [PATCH] fix format --- integration_tests/test_ibc_rly.py | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/integration_tests/test_ibc_rly.py b/integration_tests/test_ibc_rly.py index 64306e3f2c..abe7e88d58 100644 --- a/integration_tests/test_ibc_rly.py +++ b/integration_tests/test_ibc_rly.py @@ -117,7 +117,20 @@ def recv_packet(seq, src, dst, amt, denom): "packetDstPort": "transfer", "packetDstChannel": channel, "connectionId": "connection-0", - "packetDataHex": (dst, src, [(amt, denom)]), + "packetDataHex": AttributeDict( + { + "receiver": dst, + "sender": src, + "amount": [ + AttributeDict( + { + "amount": amt, + "denom": denom, + } + ) + ], + } + ), } @@ -146,7 +159,20 @@ def write_ack(seq, src, dst, amt, denom): "packetDstPort": "transfer", "packetDstChannel": channel, "connectionId": "connection-0", - "packetDataHex": (dst, src, [(amt, denom)]), + "packetDataHex": AttributeDict( + { + "receiver": dst, + "sender": src, + "amount": [ + AttributeDict( + { + "amount": amt, + "denom": denom, + } + ) + ], + } + ), }