Skip to content

Commit

Permalink
Code423n4 #11, Can access cards of other markets
Browse files Browse the repository at this point in the history
  • Loading branch information
Splidge committed Jun 21, 2021
1 parent 9655789 commit 1f395f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/RCMarket.sol
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ contract RCMarket is Initializable, NativeMetaTransaction, IRCMarket {

/// @notice gets the owner of the NFT via their Card Id
function ownerOf(uint256 _cardId) public view override returns (address) {
require(_cardId < numberOfCards, "Card does not exist");
uint256 _tokenId = _cardId + totalNftMintCount;
return nfthub.ownerOf(_tokenId);
}
Expand Down

0 comments on commit 1f395f8

Please sign in to comment.