From 0da9aa341fa369f7e08bf64ee1e71552dd335041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Costin=20Caraba=C8=99?= Date: Mon, 25 Nov 2024 20:16:19 +0200 Subject: [PATCH] clean commented code --- bridge-proxy/src/bridge-proxy.rs | 2 -- bridge-proxy/tests/bridge_proxy_blackbox_test.rs | 5 ----- 2 files changed, 7 deletions(-) diff --git a/bridge-proxy/src/bridge-proxy.rs b/bridge-proxy/src/bridge-proxy.rs index 7926817a..14f3ac63 100644 --- a/bridge-proxy/src/bridge-proxy.rs +++ b/bridge-proxy/src/bridge-proxy.rs @@ -122,7 +122,6 @@ pub trait BridgeProxyContract: #[promises_callback] fn execution_callback(&self, #[call_result] result: ManagedAsyncCallResult<()>, tx_id: usize) { if result.is_err() { - // self.refund_transaction(tx_id); let tx = self.get_pending_transaction_by_id(tx_id); self.refund_transactions(tx_id).set(&tx); } @@ -188,7 +187,6 @@ pub trait BridgeProxyContract: } fn finish_execute_gracefully(&self, tx_id: usize) { - // self.refund_transaction(tx_id); let tx = self.get_pending_transaction_by_id(tx_id); self.refund_transactions(tx_id).set(&tx); self.cleanup_transaction(tx_id); diff --git a/bridge-proxy/tests/bridge_proxy_blackbox_test.rs b/bridge-proxy/tests/bridge_proxy_blackbox_test.rs index d9c10bdb..99062aae 100644 --- a/bridge-proxy/tests/bridge_proxy_blackbox_test.rs +++ b/bridge-proxy/tests/bridge_proxy_blackbox_test.rs @@ -842,11 +842,6 @@ fn bridge_proxy_empty_endpoint_with_args_test() { .execute(1u32) .run(); - // Refund: Funds are transfered to EsdtSafe - // test.world - // .check_account(ESDT_SAFE_ADDRESS) - // .esdt_balance(BRIDGE_TOKEN_ID, amount.clone()); - test.world .check_account(BRIDGE_PROXY_ADDRESS) .check_storage("str:refundTransactions|u32:1", "0x30313032303330343035303630373038303931300000000000000000050063726f7766756e64696e675f5f5f5f5f5f5f5f5f5f5f0000000d4252494447452d3132333435360000000201f4000000000000000101000000110000000000000000009896800100000000")