diff --git a/bridge-proxy/src/bridge-proxy.rs b/bridge-proxy/src/bridge-proxy.rs index b058bacd..f4b1441f 100644 --- a/bridge-proxy/src/bridge-proxy.rs +++ b/bridge-proxy/src/bridge-proxy.rs @@ -46,8 +46,17 @@ pub trait BridgeProxyContract: config::ConfigModule { } #[callback] - fn failed_execution_callback(&self, tx: &EthTransactionPayment) { - self.eth_failed_transaction_list().push_back(tx.clone()); + fn failed_execution_callback( + &self, + #[call_result] result: ManagedAsyncCallResult<()>, + tx: &EthTransactionPayment, + ) { + match result { + ManagedAsyncCallResult::Ok(_) => {} + ManagedAsyncCallResult::Err(_) => { + self.eth_failed_transaction_list().push_back(tx.clone()); + } + } } #[endpoint(refundTransactions)]