Skip to content

Commit

Permalink
failed_execution_callback refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
CostinCarabas committed Feb 12, 2024
1 parent 6943b6d commit c857b81
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions bridge-proxy/src/bridge-proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,9 @@ pub trait BridgeProxyContract: config::ConfigModule {
#[call_result] result: ManagedAsyncCallResult<()>,
tx: &EthTransactionPayment<Self::Api>,
) {
match result {
ManagedAsyncCallResult::Ok(_) => {}
ManagedAsyncCallResult::Err(_) => {
self.eth_failed_transaction_list().push_back(tx.clone());
}
}
if result.is_err() {
self.eth_failed_transaction_list().push_back(tx.clone());
}
}

#[endpoint(refundTransactions)]
Expand Down

0 comments on commit c857b81

Please sign in to comment.