ERC721 ERC20 Burnable (OpenZeppelin Solidity implementation): The proper way to burn tokens

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ •

  • @JoseCruset
    @JoseCruset 2 роки тому

    Great, short and complete explanation. Bravo!

  • @razaqmalomo
    @razaqmalomo 2 роки тому

    Thank you for the clear explanation

  • @MUSIC_BOX2410
    @MUSIC_BOX2410 Рік тому

    Dear Bob, can you make another video about the pausable and mintable functions please?

  • @od1ez
    @od1ez 2 роки тому

    thanks man, good content

  • @石ころ-v5m
    @石ころ-v5m 2 роки тому

    Most clear video regarding NFT burns . Thanks a lot.
    I have a quick question. Why is the _burn function in the ERC721.sol internal? If it was public, ERC721Burnable isn't even necessary, right? It seems cumbersome to use a public burn function within ERC721Burnable to access an internal burn function within ERC721.

    • @石ころ-v5m
      @石ころ-v5m 2 роки тому

      Sorry, I have one more question which I think is more important. In the ERC721Burnable burn function, there isn't a logic that decrements the totalSupply. Do we have to add such a line if we want to decrease the totalSupply?

  • @jqzzz
    @jqzzz 2 роки тому +1

    Thanks for the explanation! Is there any contract can be an example of using the burn function? Would like to have a look at that :)

  • @ahmadradi6020
    @ahmadradi6020 Рік тому

    hi
    how to merge and split feature ?
    I mean someone can buy 10 nft and convert them to one nft
    That is, the nft with power10 nft?

  • @thisisnotfinancialadvice3803
    @thisisnotfinancialadvice3803 2 роки тому

    Dope 🙂

  • @Nrekredloh
    @Nrekredloh 2 роки тому

    Hello, thank you for your video. What happens if you send an ERC721 token to an ERC20 address. Is this effectively a burn? Can that token be recovered?

    • @BlockchainBob
      @BlockchainBob  2 роки тому +1

      If the ERC20 contract is also able to handle/send ERC 721, then it would not be a burn.

  • @Martijncvv
    @Martijncvv 2 роки тому

    Great explanation, when inheriting I get the following error:
    'Derived contract must override function "_burn". Two or more base classes define function with same name and parameter types.'
    Would be nice to have a video about how to fix this in a clean way.

    • @BlockchainBob
      @BlockchainBob  2 роки тому +1

      This link might be helpful: github.com/ethereum/solidity/issues/9761
      What are the two base classes you are inheriting from?

    • @Martijncvv
      @Martijncvv 2 роки тому

      @@BlockchainBob awesome! Thank you.
      ERC721URIStorage and ERC721Burnable.

  • @algonrich
    @algonrich 2 роки тому

    Can i hire you part time?

    • @BlockchainBob
      @BlockchainBob  2 роки тому +1

      I'm flattered, but I don't have the time unfortunately.

    • @algonrich
      @algonrich 2 роки тому

      @@BlockchainBob ok, i understand

    • @algonrich
      @algonrich 2 роки тому

      Is it possible to explained my project to you? all i need is about 10 minutes i think you will be impress.