Blockchain For Beginners #3 - Introduction To Solidity

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

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

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

    There is a small mistake/bug in the withdraw function of the bank account example. Can you find it?!

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

      Hlo, please replay me 🙏

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

      Hi Tim! Really appreciate what you are doing for us! I think the problem is in the require statement: you are checking the balances of the account which is meant to receive the withdrawal, instead of the actual account that is withdrawing.

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

      is it that you didn't charge the account holder for the gas used to withdraw? (by 'charge' I mean modify the amount held for them to be what they withdrew plus gas)

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

      You subtract the balance after sending the ether, making this contract vulnerable to reentrancy attacks I think

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

      Hi Tim. In the withdraw function, you are deducing the bank balance of msg.sender but sending the money to addr. Instead, the money should be sent to msg.sender .

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

    Excited to be onboarding the next generation of developers to blockchain with you Tim!

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

      Would be interesting to try out the platform :)

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

      :-)

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

    I wasted thousands of dollars in college and learned nothing compared to what i learned here in this channel for free. You guys are amazing . You people deserve a noble prize for what you are doing here.

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

    Best teacher on this ever!

  • @georges.9545
    @georges.9545 2 ปีที่แล้ว +3

    Great video Tim, however I noticed that in function parameters, you don't add an _ before the name. It is standard naming convention in solidity, just thought I should add this

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

    thanks Tim, it looks less scary to learn about this with your videos.

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

    Another gold. Thanks for making these

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

    great video! very informative and well explained

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

    Very good Tim.

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

    This is getting touch pretty quickly, i had hard time understanding all the concepts in this video

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

      Probably because you need to learn fundamentals of coding first. Took me 2 weeks to learn basics of python and I understood 95% of the content

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

    Excellent tutorial

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

    God bless you Tim!

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

      Same from me ✌

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

    Let's go Blockchain!!!!!!!!!

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

    Thank you so much man, God bless you!

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

    Can you do a series on many kinds of encryption/decryption strategies?

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

    you're a beast dude thank you so much

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

    Lets go ,gg to Tim!

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

    Thanks for this very good job
    Any time you modify your code and deploy the contract on the network, does it create a new contract or it just replaces the old one?

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

    when you deploy a new contract in 26:00 is it a new contract? or it is a modified old(from begining of video) one?

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

    Sir I hv studied solidity from official documentation , I need use cases n practice questions

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

    Keep it up ♥️

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

    what a good guy, thanks buddy

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

    Can you do a video on protect dat with flask

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

    👏👏👏

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

    Hey tim are you offering private / group / Bootcamp mentorship for backend dev? If so let me know please thanks

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

    When a smart contract interacts with another smart contract does the gas fees of the transaction made from the regular account increase or not necessarily?

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

    9:17 "We don't want to change the gas limit so we'll leave it here for now"
    *Proceeds to decrease it*

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

    Make a tutorial on circuit programming with python

  • @8nehe
    @8nehe 2 ปีที่แล้ว

    Is it possible to use python to write smart contracts?

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

    Hey guys I am stuck at the part trying to call a function. In "deployed contracts", you see the setX function, I ran the code after adding the function (exactly how you have it put, and no function is shown in my deployed contracts. Just the x button, i don't understand what am doing wrong here.

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

    The withdraw method is error prone to reentrancy attack and is how the infamous DAO hack occurred. Please fellas update your state variables before making any external calls/transactions.

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

      Which attack was it? An OnlyOwner modifier can be used so the function can be triggered only by the owner of the contract. Can the method still be attacked even with that modifier?

  • @Eswar.
    @Eswar. 2 ปีที่แล้ว +3

    Is learning ML good decision
    What should i do to learn
    I mean give me some tips and a roadmap

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

    20:40

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

    Thanks timity tim timy

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

    How to run solidity code in windows 10 notepad

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

    Can we get the code of this video ?

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

    26

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

    First

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

    Tim, you should make a Minecraft Hypixel Bedwars/Duels Tournament for 1mil subs

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

    Best laptop under 1000dollars
    Editing
    CS stuff
    Multimedia

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

      Good cpu, with integrated graphics

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

      If you can extent to 1200 bus m1 air

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

    ML vs Android development
    Which technology to learn

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

      whatever feels more fun for you
      dip toe in both

    • @Eswar.
      @Eswar. 2 ปีที่แล้ว

      @@AliendaroN yes i can but i want these from real people like you

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

    Tim, can I please be unbanned from the discord? I feel I was banned unfairly. If you cannot ban me directly, can you send me an appeal for the server?

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

    come on man.. This is not for beginners

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

    Shit is easy

  • @Eswar.
    @Eswar. 2 ปีที่แล้ว

    What is this blockchain
    Shoul i learn this over ML