Skip to content

Commit

Permalink
improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
dragos-rebegea committed Oct 21, 2024
1 parent e2f0c00 commit 0802c22
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions bridge-proxy/src/bridge-proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,8 @@ pub trait BridgeProxyContract:
fn unwrap_token(&self, requested_token: &TokenIdentifier, tx_id: usize) -> EsdtTokenPayment {
let payment = self.payments(tx_id).get();
let bridged_tokens_wrapper_address = self.bridged_tokens_wrapper_address().get();

let universal_token = self
.tx()
.to(&bridged_tokens_wrapper_address)
.typed(bridged_tokens_wrapper_proxy::BridgedTokensWrapperProxy)
.chain_specific_to_universal_mapping(requested_token)
.returns(ReturnsResult)
.sync_call();

if universal_token != payment.token_identifier {
if requested_token == &payment.token_identifier {
return payment;
}

Expand Down

0 comments on commit 0802c22

Please sign in to comment.