opensea-creatures icon indicating copy to clipboard operation
opensea-creatures copied to clipboard

Minting token by other addresses than contract owner

Open gitsad opened this issue 5 years ago • 3 comments

Can NFT be minted by other adress than owner of contract? I see in CreatureFactory.sol:

function mint(uint256 _optionId, address _toAddress) public {
        // Must be sent from the owner proxy or owner.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        assert(
            address(proxyRegistry.proxies(owner())) == msg.sender ||
                owner() == msg.sender ||
                msg.sender == lootBoxNftAddress
        );
        ...

Of course, I can simply remove the assert, however, could someone give me potential issues related to that? Thanks!

gitsad avatar Apr 02 '21 07:04 gitsad

Yes, I am interested in this one too!

djpysu avatar Apr 08 '21 20:04 djpysu

+1 on this. TBH, i dont see any problems from the solidity side of code, but there is very little visibility into opensea code which makes me hesitant to attempt this.

myleaningstuff avatar Apr 10 '21 05:04 myleaningstuff

Any experts on this can give us advice? I want to create an app where users can convert their own art into nft, so remove onlyOwner constraint is needed

duycao2506 avatar Aug 30 '21 08:08 duycao2506