@@ -121,7 +121,11 @@ pub fn reply(deps: DepsMut, _env: Env, reply: Reply) -> Result<Response, Contrac
121121 true ,
122122 ) ?;
123123
124- Ok ( Response :: new ( ) . set_data ( ack_fail ( err) ) )
124+ Ok ( Response :: new ( ) . set_data ( ack_fail ( err) ) . add_attributes ( vec ! [
125+ attr( "undo_reduce_channel" , reply_args. channel) ,
126+ attr( "undo_reduce_channel_ibc_denom" , reply_args. denom) ,
127+ attr( "undo_reduce_channel_amount" , reply_args. amount) ,
128+ ] ) )
125129 }
126130 } ,
127131 NATIVE_RECEIVE_ID => match reply. result {
@@ -150,7 +154,12 @@ pub fn reply(deps: DepsMut, _env: Env, reply: Reply) -> Result<Response, Contrac
150154
151155 Ok ( Response :: new ( )
152156 . set_data ( ack_fail ( err. clone ( ) ) )
153- . add_attribute ( "error_transferring_ibc_tokens_to_cw20" , err) )
157+ . add_attribute ( "error_transferring_ibc_tokens_to_cw20" , err)
158+ . add_attributes ( vec ! [
159+ attr( "undo_increase_channel" , reply_args. channel) ,
160+ attr( "undo_increase_channel_ibc_denom" , reply_args. denom) ,
161+ attr( "undo_increase_channel_amount" , reply_args. amount) ,
162+ ] ) )
154163 }
155164 } ,
156165 FOLLOW_UP_FAILURE_ID => match reply. result {
@@ -710,8 +719,9 @@ pub fn handle_follow_up_failure(
710719 false ,
711720 ) ?;
712721 response = response. add_attributes ( vec ! [
713- attr( "ibc_denom_undo_channel_balance" , ibc_data. ibc_denom) ,
714- attr( "remote_amount_undo_channel_balance" , ibc_data. remote_amount) ,
722+ attr( "undo_reduce_channel" , reply_args. channel) ,
723+ attr( "undo_reduce_channel_ibc_denom" , ibc_data. ibc_denom) ,
724+ attr( "undo_reduce_channel_balance" , ibc_data. remote_amount) ,
715725 ] ) ;
716726 }
717727 let refund_amount = Amount :: from_parts (
0 commit comments