Member Login - User Registration - Set as Homepage - Add to Favorites - Website Map Solidity, Blockchain, and Smart Contract Course – Beginner to Expert Python Tutorial - Ep32!

Solidity, Blockchain, and Smart Contract Course – Beginner to Expert Python Tutorial - Ep32

Time: 2025-07-11 11:41:36 Source: Codora.ai Author: python Reading: 463 times
has failed we'rerelentlessly malicious we want to sendthis transaction regardless so eventhough I'm not the admin of thiscontract I've gone ahead and katt williams theo vonstill triedto send it withdraw so what happensnow we can see that remix is saying heysomething went wrong and again if welook at ether scan we can see that thereis a fail here since in our modifier wedidn't give a reason here nothing showsup but we could have always put a reasonin there and something would show up soall right let's go ahead back to theactualadmin and now let's try to withdraweverything so if we hit withdraw now wecan go ahead and confirm what shouldhappen is everything in here should beback to zero and this array should beback to zero as well and if we watch ouraddress we can see it literally justwent from 04 to 6 because it got 0.1from the original funding that thisaccount put in and the 0.1 that oursecond account put in so now if we lookat funer zero we can see it actuallyerrored because it is now a brand newarray and there is nothing at index zeroif we try to see how much this addressnow has funded it's back down to zeroawesome you've now learned how to deploya relatively simple yet effectivecrowdsourcing application where userscan fund and an admin can withdraw thosefunds to go spend them onthings now we've been working with remixso far to start our smart contract andour solidity development Journey remixis an incredibly powerful what's knownas a web IDE or an integrateddevelopment environment and in myopinion remix should always be thestarting ground for anybody looking tostart their smart contract Journeybecause it is a wonderfully friendly wayto really show what's going on behindthe scenes and it's really easy to seeeverything we're doing with ethereumwith chain link and with our smartcontracts now it does have somelimitations though it's really hard tointegrate other parts of differentprojects it has some limited support fortesting or custom deployments it's alittle tricky to save files locally youneed an internet connection to actuallyinteract with it and it doesn't havepython so in order for us to deploy testand automate everything about our smartcontract development cycle we want toconnect our solidity and our smartcontracts with a more traditionalprogramming language like python thisway we can customize our entiredevelopment environment in any way thatwe like we're first going to teach youall how to work with what's known as web3.pay which is an incredibly powerfulpython package for doing everything thatwe want to do with smart contracts thenonce we learned some of the basics ofweb 3. Pi then we'll move on to Browningwhich is a smart contract developmentframework built on top of web 3py whichmakes our lives even easier however it'sstill really important to learn web 3pfirst because this will teach you what'sgoing on behind the scenes ofbrownie now for the rest of this courseI'm going to be working with VisualStudio code which is an incredible iblypowerful text editor that will give us alot of formatting and a lot of reallynice tools to work with deploying andinteracting with our smart contracts ifyou've already got vs code and Pythonand your entire coding setup set up theway that you like it feel free to usethe timestamps in the description toskip ahead to the next section you'lloften hear people referring to this asvs code or Visual Studio code but justto point out this is not what you'relooking for right in front of you hereVisual Studio is a different applicationmake sure you're on Visual Studio codeif you want to be a total Hardo and justwork with Vim or emac or whatever elseyou want to do you absolutely can butI'm going to go through setting upvisual studio code the way that I likeit and if you guys want to follow alongI highly recommend it because it's goingto make your life a lot easier there's alink to download visual studio code inthe GitHub repository basically all youhave to do is come to the site righthere and you can hit this big downloadbutton it should recognize whatoperating system that you're on be itWindows be it Mac or some otheroperating system and if it doesn't youcan go ahead and hit this little dropdown and pick one there so let's goahead and download visual studio codeand open itup awesome once you've downloaded VisualStudio code this is approximately whatyou should be seeing there's a fantasticgetting started section here where ifyou're brand new to vs code and you wantto learn a little bit more quickly youabsolutely can and we have some links aswell in our GitHub repository giving youa crash course in vs code if you want tolearn more let's set this up though soit's going to be really friendly for usto be doing our smart contractdevelopment here so first we want to goto this extensions tab it looks likethese little blocks thing right here andfirst we're going to look up Python andyou want to install this pythonextension right here this is going tomake our lives a lot easier forinteracting with python and and doing alot of things withpython then you're going to want to goahead and download this and install thissolidity extension this is going to makeformatting our solidity a lot easier nowwe want to download python if youhaven't already so go ahead topython.orglet's go to downloads and it shouldrecognize what operating system thatyou're on and you can just go ahead andhit the download button and then followthe steps to download this I've alreadygot it download so I'm not going to walkthroughthis okay great now that we have pythoninstalled one of the other amazingthings about VSS code is you canactually open a terminal up inside avisual studio code way you can open yourown terminal if this is your vs code youcan go over on this top bar to terminaland select new terminaland you'll see something that looks likethis it might be a bash it might be azch it might be a Powershell there's alot of different types of terminals thatyou'll be able to see by looking righthere we can now test to see if

(Editor in charge: kotlin)

Related content
  • Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep145
  • Screwly G's First Interview! Music Video Shooting, FBG Duck Diss Controversy, Gary Indiana & More - Ep22
  • [Hindi (auto-generated)] Machine Learning FULL Course with Practical (10 HOURS) _ Learn Free ML in 2025 _ Part-1 - Ep80
  • Artificial Intelligence Full Course 2024 _ AI Tutorial For Beginners _ AI Full Course_ Intellipaat - Ep78
  • Learn Blockchain, Solidity, and Full Stack Web3 Development with JavaScript – 32-Hour Course - Ep37
  • Artificial Intelligence Full Course 2024 _ AI Tutorial For Beginners _ AI Full Course_ Intellipaat - Ep64
  • Artificial Intelligence Full Course 2024 _ AI Tutorial For Beginners _ AI Full Course_ Intellipaat - Ep93
  • How to use ChatGPT in 2025 _ ChatGPT Tutorial _ ChatGPT Full Course - Ep70
Recommended content
  • GenAI Essentials – Full Course for Beginners - Ep104
  • Screwly G's First Interview! Music Video Shooting, FBG Duck Diss Controversy, Gary Indiana & More - Ep5
  • Screwly G's First Interview! Music Video Shooting, FBG Duck Diss Controversy, Gary Indiana & More - Ep15
  • Artificial Intelligence Full Course 2024 _ AI Tutorial For Beginners _ AI Full Course_ Intellipaat [DownSub.com](1).txt - Ep38
  • Solidity, Blockchain, and Smart Contract Course – Beginner to Expert Python Tutorial - Ep22
  • How to use ChatGPT in 2025 _ ChatGPT Tutorial _ ChatGPT Full Course - Ep9