PatrickAlphaC / hardhat-nft-fcc

102 stars 140 forks source link

BasicNFT.sol return statement in mintNft function #14

Closed adityabhattad2021 closed 1 year ago

adityabhattad2021 commented 2 years ago
   function mintNft() public returns (uint256) {
        _safeMint(msg.sender, s_tokenCounter);
        s_tokenCounter = s_tokenCounter + 1;
        return s_tokenCounter;
    }

Is this return statement needed?

PatrickAlphaC commented 2 years ago

You're right! It doesn't

PatrickAlphaC commented 1 year ago

Going to close, though. You're right we don't need the return!

adityabhattad2021 commented 1 year ago

Thanks for clearing my doubt.