Skip to content

Commit

Permalink
trigger test
Browse files Browse the repository at this point in the history
  • Loading branch information
Deewai committed Oct 7, 2024
1 parent 093b24c commit 37b928e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions escrow/contracts/Escrow.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ access(all) contract Escrow {
if(leaderboard.entriesData[nftID] == nil) {
return
}

if(depositCap.address != leaderboard.entriesData[nftID]!.ownerAddress){
panic("Only the owner of the entry can withdraw it")
}
Expand All @@ -212,6 +213,7 @@ access(all) contract Escrow {
if(leaderboard.entriesData[nftID] == nil) {
return
}

leaderboard.transferNftToCollection(nftID: nftID, depositCap: depositCap)
}

Expand Down

0 comments on commit 37b928e

Please sign in to comment.