-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(world-modules): add ERC721 module #1844
Conversation
🦋 Changeset detectedLatest commit: 65a8802 The changes in this PR will be included in the next version bump. This PR includes changesets to release 30 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
6de0e3c
to
b57cf25
Compare
3938d78
to
cb23f0f
Compare
cb23f0f
to
10b6c18
Compare
0881dfd
to
321dba4
Compare
// (https://github.com/Vectorized/solady/blob/main/test/ERC721.t.sol) | ||
///////////////////////////////////////////////// | ||
|
||
function testMint(uint256 id, address owner) public { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gas reports please! would love to see the gas of this vs solady
@@ -52,7 +51,7 @@ contract ERC20System is System, IERC20Mintable, PuppetMaster { | |||
* {IERC20-balanceOf} and {IERC20-transfer}. | |||
*/ | |||
function decimals() public view virtual returns (uint8) { | |||
return Metadata.getDecimals(_metadataTableId(_namespace())); | |||
return ERC20Metadata.getDecimals(_metadataTableId(_namespace())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel strongly but wondering if these changes get moved to the ERC20 PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I generally agree, but in this case i'd prefer to not do the refactor for time reasons. We could merge the erc721 PR into the erc20 PR instead of merging both into main individually
// SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.21; | ||
|
||
/* Autogenerated file. Do not edit manually. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aw man, I thought we had moved these to a codegen dir
|
||
contract WrongReturnDataERC721Recipient is ERC721TokenReceiver { | ||
function onERC721Received(address, address, uint256, bytes calldata) public virtual override returns (bytes4) { | ||
return 0xCAFEBEEF; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3431d30
to
70446e7
Compare
321dba4
to
26c6511
Compare
73a9250
to
65a8802
Compare
No description provided.