Skip to content

Commit

Permalink
Add _cast to ERC721ContractMetadata_NFTC
Browse files Browse the repository at this point in the history
Update package version
  • Loading branch information
Yosif committed Oct 14, 2024
1 parent a98e849 commit 4065987
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions contracts/token/opensea/seadrop/ERC721ContractMetadata_NFTC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -206,4 +206,17 @@ abstract contract ERC721ContractMetadata_NFTC is
function royaltyBasisPoints() external pure returns (uint256) {
return 0;
}

/**
* @dev Internal pure function to cast a `bool` value to a `uint256` value.
*
* @param b The `bool` value to cast.
*
* @return u The `uint256` value.
*/
function _cast(bool b) internal pure returns (uint256 u) {
assembly {
u := b
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nftculture/nftc-contracts",
"version": "1.5.23",
"version": "1.5.24",
"description": "NFTCulture Open Source Contracts Project",
"author": "@NFTCulture",
"license": "MIT",
Expand Down

0 comments on commit 4065987

Please sign in to comment.