Skip to content

Commit

Permalink
unified syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed May 16, 2024
1 parent b17dcc6 commit 23c8212
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion nft-minter/src/nft_marketplace_interactor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ pub trait NftMarketplaceInteractorModule:
let call_result: EgldValuePaymentsVecPair<Self::Api> = self
.nft_marketplace_proxy_builder(marketplace_address)
.claim_tokens(own_sc_address, args)
.execute_on_dest_context();
.returns(ReturnsResult)
.sync_call();

let (egld_amount, other_payments) = call_result.into_tuple();
if egld_amount > 0 {
Expand Down
6 changes: 4 additions & 2 deletions royalties-handler/src/nft_minter_interactor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ pub trait NftMinterInteractorModule:
.to(sc_address)
.typed(nft_minter::nft_minter_proxy::NftMinterProxy)
.claim_royalties()
.execute_on_dest_context()
.returns(ReturnsResult)
.sync_call()
}

fn call_claim_mint_payments(
Expand All @@ -46,7 +47,8 @@ pub trait NftMinterInteractorModule:
.to(sc_address)
.typed(nft_minter::nft_minter_proxy::NftMinterProxy)
.claim_mint_payments()
.execute_on_dest_context()
.returns(ReturnsResult)
.sync_call()
}

#[view(getNftMinterScAddress)]
Expand Down

0 comments on commit 23c8212

Please sign in to comment.