Skip to content

Commit

Permalink
clean commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
CostinCarabas committed Nov 25, 2024
1 parent 74b68f2 commit 0da9aa3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions bridge-proxy/src/bridge-proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
Expand Down
5 changes: 0 additions & 5 deletions bridge-proxy/tests/bridge_proxy_blackbox_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 0da9aa3

Please sign in to comment.