File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed
Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ fn ibc_to_and_from_payment_addrs() -> Result<()> {
149149 None ,
150150 None ,
151151 None ,
152- true ,
152+ false ,
153153 None ,
154154 None ,
155155 ) ?;
@@ -162,6 +162,34 @@ fn ibc_to_and_from_payment_addrs() -> Result<()> {
162162 check_shielded_balance ( & test, AA_VIEWING_KEY , & ibc_denom_on_namada, 100 ) ?;
163163 check_cosmos_balance ( & test_gaia, COSMOS_USER , COSMOS_COIN , 900 ) ?;
164164
165+ // Get refunded by unshielding to an invalid address on Gaia
166+ transfer (
167+ & test,
168+ A_SPENDING_KEY ,
169+ "invalid_receiver" ,
170+ & ibc_denom_on_namada,
171+ 100 ,
172+ Some ( BERTHA_KEY ) ,
173+ & port_id_namada,
174+ & channel_id_namada,
175+ None ,
176+ None ,
177+ None ,
178+ None ,
179+ false ,
180+ None ,
181+ None ,
182+ ) ?;
183+ wait_for_packet_relay (
184+ & hermes_dir,
185+ & port_id_namada,
186+ & channel_id_namada,
187+ & test,
188+ ) ?;
189+ // The balance should not be changed
190+ check_shielded_balance ( & test, AA_VIEWING_KEY , & ibc_denom_on_namada, 100 ) ?;
191+ check_cosmos_balance ( & test_gaia, COSMOS_USER , COSMOS_COIN , 900 ) ?;
192+
165193 Ok ( ( ) )
166194}
167195
You can’t perform that action at this time.
0 commit comments