30 Solidity Tricks You Can’t Live Without

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024
  • FREE MASTERCLASS "Get Into Web3 In a Bear Market"
    👉 Link: eattheblocks.c...
    👉 Full roadmap to learn Web3 Development & get a 6 figure remote job
    👉 EVEN during this bear market

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

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

    FREE MASTERCLASS "Get Into Web3 In a Bear Market"
    👉 Link: eattheblocks.com/masterclass
    👉 Full roadmap to learn Web3 Development & get a 6 figure remote job
    👉 EVEN during this bear market

  • @NOT_TON_Fan
    @NOT_TON_Fan ปีที่แล้ว +9

    We want more videos like this.

  • @warodomwerapun6417
    @warodomwerapun6417 ปีที่แล้ว +3

    ^0.8.20 , some tutorials put this for compatible purpose, not for deploying in the production, then putting ^ symbol is not always wrong, it is depending on the objective of example.

    • @heyjonbray
      @heyjonbray หลายเดือนก่อน +1

      true, if you're building standalone contracts or working with other compatible versions then specifying an exact compiler version is fine
      however some dependencies don't play nice with exact compiler versions, a big one being uniswap periphery contracts and a handful of other very integral dependencies that show up a lot onchain

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

    mind explosion .... thankyou

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

    Thank you for this.

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

    this is awesome, thanks for sharing these advanced tips

  • @BobbyX7
    @BobbyX7 7 หลายเดือนก่อน

    Thank you! This is really helpful. Much appreciated.

    • @EatTheBlocks
      @EatTheBlocks  7 หลายเดือนก่อน

      Glad to hear it!

  • @xunorus
    @xunorus 13 วันที่ผ่านมา

    can't like this enough!🙏🙏🙏

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

    thank u

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

    11:41 for "pure" keyword, I compiled the code example with and without optimization using no mutability, "view" and then "pure", and bytecode is exact same in every case (except for metadata hash ofc)

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

    Wow that’s a lot of information ,merci

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

    Nice tips and tricks, I love the section on reentrancy guards 👌

    • @EatTheBlocks
      @EatTheBlocks  11 หลายเดือนก่อน

      Thanks, glad you liked these Solidity tricks!

  • @slavikcryptoes1714
    @slavikcryptoes1714 10 หลายเดือนก่อน +1

    14:04 Thank you professor, just like in the college 😅

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

    this was great

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

    your videos are the best!

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

    Wow. I really love this

  • @ja.digital617
    @ja.digital617 ปีที่แล้ว +1

    Hey pal!

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

    Yes yes yes ooo solidity so good

  • @slavikcryptoes1714
    @slavikcryptoes1714 10 หลายเดือนก่อน

    You're like the crypto-Asterix, excellent videos anyway, thanks.

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

    109th...Thanks Julien

  • @danaherstudio
    @danaherstudio 11 หลายเดือนก่อน

    Do free functions (or importing scripts) still count towards the size of the contract?
    I don't see why they wouldn't but I have my fingers crossed for the opposite lol.

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

    Suggest some courses for beginner to advance in blockchain developement

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

      Here you go (it's my course):
      eattheblocks.com/course/

  • @califafula2928
    @califafula2928 6 หลายเดือนก่อน

    The best

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

    What about huff ?

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

      Good suggestion. I might do a tutorial on that

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

    trying to use console.log but not working giving error
    code:
    pragma solidity ^0.8.8;
    import "hardhat/console.sol";
    contract Tricks
    {
    function Console() external pure
    {
    uint256 a=30;
    int256 b=-25;
    console.log (a);
    console.log (b);
    }
    }
    error:
    TypeError: Member "log" not found or not visible after argument-dependent lookup in type(library console).
    --> SOLIDITY/SOLIDITY/Tricks.sol:13:10:
    |
    13 | console.log (b);
    | ^^^^^^^^^^^

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

    Solidity: EXCUSE MEEE!!! Did you just assume my GENDERR!!!

  • @HasanKhan-nq2ch
    @HasanKhan-nq2ch ปีที่แล้ว

    u are awosomeeeee

  • @atomauro
    @atomauro หลายเดือนก่อน

    capo

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

    05:16 😂 Tu as fais ton "et voilà" comme un étranger qui essaie de parler français

    • @EatTheBlocks
      @EatTheBlocks  11 หลายเดือนก่อน

      Ah non, en Anglais on peut dire voila.

  • @jean-michelhiver4362
    @jean-michelhiver4362 ปีที่แล้ว

    So you do a horrible unbounded loop in the iterate() function example, say "et voila", only to let people know in the following trick that doing so is actually a terrible idea. Lol

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

      No, you missed the point. Unbounded loops should be avoided in transactions. If you are just reading data, it's not a transaction.

    • @jean-michelhiver4362
      @jean-michelhiver4362 ปีที่แล้ว

      @@EatTheBlocks there is still a gas limit on reads, plus you might well need to use a read function in a write function, so it's still a pretty ugly thing to do imho

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

    @EatTheBlocks