Skip to content

Commit

Permalink
ON-793: returning variable instead of constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ernanirst committed May 9, 2024
1 parent 9532d9d commit c549f49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/ERC7432/NftRolesRegistryVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ contract NftRolesRegistryVault is IERC7432 {
bytes32 _roleId
) external view returns (bytes memory data_) {
if (roles[_tokenAddress][_tokenId][_roleId].expirationDate > block.timestamp) {
return roles[_tokenAddress][_tokenId][_roleId].data;
data_ = roles[_tokenAddress][_tokenId][_roleId].data;
}
return '';
return data_;
}

function roleExpirationDate(
Expand Down

0 comments on commit c549f49

Please sign in to comment.