ERC 165: Detect what interfaces are supported by a smart contract

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024
  • ERC 165 allows you to detect what interfaces a smart contract implements.
    This can help prevent users or smart contracts from sending tokens to contracts that don't support the token interface, as this would cause the tokens to become stuck in the receiving contract.
    The smart contract in the video is deployed on the Rinkeby testnet here:
    rinkeby.ethers...
    You can also call the methods to generate the interface ids. (don't worry, this consumes zero gas because the methods are not modifying the state of the blockchain)
    Github for the smart contract used in the video:
    github.com/rob...
    en.wikipedia.o...
    eips.ethereum....

ความคิดเห็น • 12

  • @TokeoTokeoTokeo
    @TokeoTokeoTokeo ปีที่แล้ว

    Thank you for this!

  • @konstantinschwemlein2809
    @konstantinschwemlein2809 ปีที่แล้ว

    Awesome Video, you explained the topic so well! :) Thank you!

  • @je9625
    @je9625 2 ปีที่แล้ว

    Excellent video tutorial. Thank you for your work.

  • @LifeofKiska
    @LifeofKiska 2 ปีที่แล้ว

    Def very helpful for what I was looking for. Thanks!

  • @armandosiliceo-roman6710
    @armandosiliceo-roman6710 ปีที่แล้ว

    Thank you. This was excellent.

  • @rafaelquintero8090
    @rafaelquintero8090 2 ปีที่แล้ว

    Super useful stuff. Thanks

  • @adegbiteademola5329
    @adegbiteademola5329 2 ปีที่แล้ว +1

    Great video.

    • @BlockchainBob
      @BlockchainBob  2 ปีที่แล้ว

      Glad you enjoyed it =)

    • @chrissgchriss
      @chrissgchriss 2 ปีที่แล้ว

      Yes Great Video - I will have to watch it several more times to grasp this fully. I only want to encourage you to continue with your videos sir.

    • @BlockchainBob
      @BlockchainBob  2 ปีที่แล้ว

      @@chrissgchriss thank you Chriss!

  • @cleverblocks6422
    @cleverblocks6422 2 ปีที่แล้ว

    Amazing !

  • @GonzoRust
    @GonzoRust 2 ปีที่แล้ว

    subbed. great work dude ty. curious, why use the big endian to assign the ID? seems like a lot of 0's just hanging around waiting for another y2k to bite someone in the ass for not adding room for a long hash ID. also, in theory couldn't you trick the XOR statement into thinking your shit token is exactly what it needs to work with so long as you minted a shit token with a matching hash? i mean it's improbable not impossible... today ... but... immutable means if shit pops off and another hash is created with that same big endian hash ID... then... game over.... haven't seen anyone talk about this anywhere.... did i make up an imaginary enemy? sorry it's been about since the year 2000 since i was passionate about a project i'm working on and i was just curious! thanks!