Skip to content

Commit

Permalink
Merge pull request #97 from multiversx/fix/nft-escrow-accept
Browse files Browse the repository at this point in the history
nft-escrow: Fix accept endpoint & test
  • Loading branch information
CostinCarabas authored Aug 5, 2024
2 parents 64bd0c9 + 6d38bea commit a56be9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions contracts/nft-escrow/scenarios/accept.scen.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
"instances": [
{
"nonce": "1",
"balance": "1"
"balance": "0"
},
{
"nonce": "2",
Expand Down Expand Up @@ -219,7 +219,7 @@
"instances": [
{
"nonce": "1",
"balance": "0"
"balance": "1"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion contracts/nft-escrow/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pub trait NftEscrowContract {

self.tx().to(&offer.creator).payment(payment).transfer();
self.tx()
.to(&offer.creator)
.to(&offer.wanted_address)
.payment(EsdtTokenPayment::new(
offer.nft,
offer.nonce,
Expand Down

0 comments on commit a56be9c

Please sign in to comment.