Skip to content

Commit

Permalink
added the getPaper function
Browse files Browse the repository at this point in the history
  • Loading branch information
sonika-25 authored Aug 12, 2021
1 parent f4e1792 commit bbde616
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/hardhat/contracts/DAO.sol
Original file line number Diff line number Diff line change
Expand Up @@ -192,4 +192,9 @@ contract DAO {
validatorCollateral[msg.sender] = _collateral;
return true;
}
function getPaper (
uint256 _tokenId
) public view returns (PaperStruct memory){
return paperById[_tokenId];
}
}

0 comments on commit bbde616

Please sign in to comment.