Skip to content

Commit

Permalink
Golf
Browse files Browse the repository at this point in the history
  • Loading branch information
duncancmt committed Jan 9, 2024
1 parent 7ae3e1d commit 77be36f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/deployer/Deployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ contract Deployer is TwoStepOwnable, IERC721ViewMetadata {
string public constant override symbol = "0xV5";

function supportsInterface(bytes4 interfaceId) public view override(IERC165, Ownable) returns (bool) {
return super.supportsInterface(interfaceId) || interfaceId == 0x80ac58cd || interfaceId == 0x5b5e139f;
return super.supportsInterface(interfaceId) || interfaceId == 0x80ac58cd // regular ERC721
|| interfaceId == type(IERC721ViewMetadata).interfaceId;
}

function balanceOf(address owner) external view override returns (uint256) {
Expand Down
4 changes: 3 additions & 1 deletion src/utils/IPFS.sol
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,16 @@ library verifyIPFS {
unchecked {
// compute byte length
uint256 length;
if (x >> 14 >= 1) {
if (x >> 14 != 0) {
length += 14;
}
if (x >> 7 >= 1 << length) {
length += 7;
}
if (x >= 1 << length) {
length += 7;
} else if (x == 0) {
length = 7;
}
length = length.unsafeDiv(7);

Expand Down

0 comments on commit 77be36f

Please sign in to comment.