How to Connect your Smart Contracts to Metamask | Full Stack Web3

Поделиться
HTML-код
  • Опубликовано: 1 июн 2024
  • We learn exactly how web3 / blockchain / smart contract applications work in the front end using HTML and Javascript. We then go through 6 different ways you can connect your Metamask, Phantom, or other blockchain wallet address to your front end. We’ll look at popular Nextjs / React packages to make your development lifecycle 100 times easier.
    💻 Code: github.com/PatrickAlphaC/full...
    ✍️ Article: betterprogramming.pub/everyth...
    NextJS: nextjs.org/
    ⏰TimeStamps
    0:00 | Introduction
    0:59 | Disclaimer
    1:29 | What's going on in the front end with wallets
    6:57 | Coding Setup / Intro
    9:01 | "Raw" HTML & Javascript
    30:38 | NextJS & Ethers
    44:48 | NextJS & Web3-React
    55:10 | NextJS & Moralis
    1:02:20 | NextJS & Web3Modal
    1:07:45 | NextJS & useDapp
    1:09:45 | 100k subs update...
    1:10:13 | Outro
    Check out these articles to learn about some of these tools and start your journey as a smart contract engineer!
    👇👇👇👇👇👇👇👇👇👇👇👇👇👇👇👇👇👇👇
    📕How to Become a Blockchain Engineer: betterprogramming.pub/how-to-...
    ✍️Top 10 Resources, Tutorials, and Follows: dev.to/patrickalphac/top-10-s...
    👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆👆
    ✅✅ Donate ✅✅
    I use donated funds to spend money on making fun & informational videos.
    ETH/Polygon/Avalanche/EVM Chains Wallet address: 0x9680201d9c93d65a3603d2088d125e955c73BD65
    😸😸Join the community!😸😸
    Chainlink developers discord: / discord
    Twitter: / patrickalphac
    Medium: / patrick.collins_58673
    TikTok: / patrickalphac
    Twitch Stream Uploads & Shorts: / @patrickalphac-alt
    Twitch: / patrickalphac
    All thoughts and opinions are my own.
  • РазвлеченияРазвлечения

Комментарии • 187

  • @AryanRaj-zt6cq
    @AryanRaj-zt6cq Год назад +1

    The way you make things easier to understand is amazing Patrick. Thanks Man🔥Loving your tutorials❤

  • @WonderWorksAI
    @WonderWorksAI 2 года назад

    Thank you. Thank you. Thank you. You gave simple answer, and clear explanation. Save us from researching and testing

  • @melvinshibidi8110
    @melvinshibidi8110 2 года назад +6

    Your teaching is very clear and straight to the point, i love this video thanks

  • @apereiracv
    @apereiracv Год назад +2

    You're doing God's work with these tutorials, love them! Thank you for all the great content!

  • @hadisaleh3051
    @hadisaleh3051 2 года назад +29

    Man this stuff is amazing
    I am really amazed by this guy's way of teaching, certainly the best example for how development educational content should be
    Thanks a ton!

  • @touqeershah2776
    @touqeershah2776 Год назад +5

    I learn so many things from your video every day and I found you are one of the best developers of blockchain right now
    Happy to see more video from you

  • @scottlieber7985
    @scottlieber7985 Год назад

    Those fast-forward sound effects brought me back to my childhood haha. Thanks for the great (free!) content Patrick. You're awesome.

  • @dhaneshgujrathi4681
    @dhaneshgujrathi4681 8 месяцев назад

    You are awesome Patrick ! Have been going through your Foundry based course & came here for the Front end lesson. I must say I feel more confident about Front-end development after going through this video.

  • @mansoob
    @mansoob Год назад +1

    Great tutorial, I was looking for one like this.

  • @hrishikeshdeoghare4359
    @hrishikeshdeoghare4359 Год назад +1

    WWoowww Loved it!!! Thank you Patrick!

  • @hv6411
    @hv6411 Год назад +1

    Thank you Patrick for making us smarter 🤩

  • @johnm384
    @johnm384 2 года назад +1

    Thanks Patrick! Great tutorial. Very helpful!

  • @danishhraza
    @danishhraza 7 месяцев назад +1

    I am not even halfway through and i had to pause just to compliment your teaching style! Love how i am able to understand everything

    • @PatrickAlphaC
      @PatrickAlphaC  7 месяцев назад

      Thank so much!! Glad it’s been helpful!

  • @kalpeshmali1476
    @kalpeshmali1476 2 года назад +11

    Thank You sir for providing Knowledge 🔥❤️

  • @adamhamaimou255
    @adamhamaimou255 2 года назад +1

    Really needed this. Thank you !

  • @priyankgupta
    @priyankgupta 2 года назад +3

    Hey Patrick, I am eagerly waiting for your JS tutorial in web3. Gonna be lit!!!!

  • @CSMcVay
    @CSMcVay Год назад

    Patrick! You da maaaan!
    Thanks for yet another awesome vid 🚀

  • @AISTanmaypatil
    @AISTanmaypatil 2 года назад +7

    Another 16 hrs tutorial 🤩🤩 let me guess I think next tutorial will focus on javascript, hardhat and ethers.js.
    Thank you Patrick sir because of you i can able to make some good web3 projects.🙏
    Thanks again for giving this tutorials for free.

  • @betzabesp94
    @betzabesp94 2 года назад +3

    You are awesome Patrick! Thanks a lot for what you're doing!

    • @betzabesp94
      @betzabesp94 2 года назад

      It would be great to know what's your favorite way to connect?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      @@betzabesp94 typically you can follow me on Twitter @patrickalphac or on LinkedIn!

    • @betzabesp94
      @betzabesp94 2 года назад +1

      @@PatrickAlphaC I mean, What metamask connector do you prefer? hahaha (if any). -But I'm already following you on twitter-

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      @@betzabesp94 oh…. Ahahahahha. My bad.
      I like moralis hooks or web3-modal myself

  • @dayhun7722
    @dayhun7722 Год назад +1

    thanks from China, your video is gonna change my life!!

  • @jingli9232
    @jingli9232 2 года назад +2

    love from China, great thanks

    • @galibkiyaadein4627
      @galibkiyaadein4627 Год назад

      How 😮...Is youtube not banned in china? 😅

    • @jingli9232
      @jingli9232 Год назад

      @@galibkiyaadein4627 haha, I guess over 100 million people in China know how to ignore the ban and search for anything we want

  • @deltavthrust
    @deltavthrust Год назад +1

    Very nice. Thank you.

  • @anthonynolanjannotta4688
    @anthonynolanjannotta4688 2 года назад +4

    wow this is perfect timing 👌

    • @hitmeupontelegramamtvcg2033
      @hitmeupontelegramamtvcg2033 2 года назад

      Thanks for watching send me a direct massage for something profitable 👆📩❤️💯

  • @selcuk8060
    @selcuk8060 2 года назад +1

    I made my first actual dApp using your metamask connection codebase, thanks!

  • @great-olamedia8253
    @great-olamedia8253 Год назад +1

    I really wanna be like Great Patrick Collins in teaching. Please do add Great to his name😀

  • @thisisnotfinancialadvice3803
    @thisisnotfinancialadvice3803 2 года назад +1

    PATRICK THE GOAT!!!!!!

  • @josepaulocorreia7248
    @josepaulocorreia7248 2 года назад +1

    men we need your js 11h tutorial ! amazing content.

  • @ArunkumarMceb
    @ArunkumarMceb 2 года назад +1

    Your free contents are changing our lives patrick!,But yeah i will still ask for another 16 hour video when you reach 1M subs :D

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      Woah! You have a lot of confidence in me to hit 1M subs!
      Glad the content is helpful

  • @user-dm7xu4tb1k
    @user-dm7xu4tb1k Год назад +1

    great video dude

  • @kwreck0022
    @kwreck0022 2 года назад +1

    Awesome vid. Thx!!

  • @SantiagoSeverino
    @SantiagoSeverino 2 года назад +1

    Patrick you the best outthere

  • @naufaldbei4234
    @naufaldbei4234 2 года назад +1

    damn, u sure are a blessing sir, thanks!

  • @avtrem
    @avtrem 7 месяцев назад

    Nice content.

  • @Justobolsa
    @Justobolsa 2 года назад +2

    Any preference between moralis / modal / web3-react?
    Awesome video Patrick!

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      I think I'm starting to like moralis more and more, but whatever you like works. They are starting to create more and more hooks and even UI components.

  • @jackpaperhands
    @jackpaperhands 2 года назад +1

    Legend!

  • @danielesuppo8083
    @danielesuppo8083 Год назад +2

    Amazing tutorial! just a question: you mentioned that without wrapping app.js with "Web3ReactProvider" we should re-connect in every page, but in my idea it's not totally true, we should just send back a prop with the state of the connection... Not so polished for sure, but feasible, isn't it? Or maybe I'm missing something?

    • @PatrickAlphaC
      @PatrickAlphaC  Год назад +1

      You could do that! But context providers make it a little easier.

  • @manfrombritain6816
    @manfrombritain6816 Год назад +1

    coding tutorials: you come from part way through a 32 hour tutorial where good ol Patrick says "if you haven't seen this, go watch this". then inside THAT 1 hour video you get sent to another video xD
    oh Patrick. have mercy!

    • @PatrickAlphaC
      @PatrickAlphaC  Год назад

      Oh just you wait till you get into web3 as a dev

  • @BenjaminLecomte
    @BenjaminLecomte Год назад +1

    Thank you Patrick for this course!!!
    I am wondering what is the difference between using browserify for ethers+"raw" javascript and the method you use for the fund-me-app in your 32hr solidity-js tutorial?
    Which one is more conventionnal? Thanks again

    • @PatrickAlphaC
      @PatrickAlphaC  Год назад +1

      Browserify is my "hack" for making front end code more "node.js-like". A lot of front end people got mad at me for that, so I made it more front-end-like for the 32 hour course.
      In any case, you'll likely be using a framework like react for production code tho!

    • @BenjaminLecomte
      @BenjaminLecomte Год назад +1

      @@PatrickAlphaC Thank you! Everything is great so far, I love it

  • @Preshdev
    @Preshdev 2 года назад

    awesome

  • @SadFace229
    @SadFace229 2 года назад +3

    Ah yes, the final piece to the puzzle before I can finally complete my project and start applying for jobs. Patrick, I owe you a drink.

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +2

      Just remember me when you make your millions ;)

    • @SadFace229
      @SadFace229 2 года назад +1

      @@PatrickAlphaC Rest assured, a Lannister always pays his debts.

    • @lightyear3429
      @lightyear3429 5 месяцев назад

      How has it been? Got a job?

    • @SadFace229
      @SadFace229 5 месяцев назад

      Had opportunities, got cold feet and shot myself in the foot. Even in front of the man himself last year @@lightyear3429. Now I am aware of what imposter syndrome is. Still grinding. Thanks for asking.

  • @StudioAvante
    @StudioAvante 2 года назад +1

    Nice! Wish I had this tutorial one year ago! What's your advice for someone stuck with Drizzle, which has been quietly discontinued? My dapps are working fine, but I have a constant feel that I should migrate out of it asap.

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      I got something for you coming out soon ;)

    • @StudioAvante
      @StudioAvante 2 года назад

      @@PatrickAlphaC that's great, but if it's going to take a while, can't I just have the Name of the Thing I need?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      @@StudioAvante you could look at ethereum-boilerplate by the moralis team or scaffold-ETH from Austin Griffith

  • @deepwebtv
    @deepwebtv 2 года назад +2

    is there a way to do all this without nextjs or react?
    can someone build a frontend in JUST html & js or is this impossible?
    thanks.

    • @deepwebtv
      @deepwebtv 2 года назад +1

      by only using web3.js?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      @@deepwebtv I show you how to do that at the start of the video!

    • @deepwebtv
      @deepwebtv 2 года назад

      @@PatrickAlphaC Thank you. I'm just stuck on something. I will retry again. Sorry for the dumb question.

  • @clintonsolomon8443
    @clintonsolomon8443 2 года назад +1

    🏋🏋‍♂💪👊. Thank you

  • @GoodDaySa
    @GoodDaySa Год назад +1

    hi Patrick! im stuck currently on yarn hardhat node, my pc doesnt seem to like the yarn command, is there a npm command that will do the same thing?

    • @PatrickAlphaC
      @PatrickAlphaC  Год назад +1

      you could use "npm install" to install and then "npx hardhat node"

  • @mayanksharma4965
    @mayanksharma4965 Год назад

    Can I deploy my nft marketplace contract when deploying the hardhat-simple-storage contract because i dont know how to deploy that contract in visual studio code.

  • @haritmohansaxena732
    @haritmohansaxena732 2 года назад

    Hi @Patrick Collins is there a way to use window.ethereum functionality from a mobile browser since u cant install metamask ext on phone ?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      Good question… I’d have to double check. Could you ask this on stack exchange ETH or check the metamask docs.

  • @hemangahuja9029
    @hemangahuja9029 2 года назад +2

    🐐

    • @hitmeupontelegramamtvcg2033
      @hitmeupontelegramamtvcg2033 2 года назад

      Thanks for watching send me a direct massage for something profitable 👆📩❤️💯

  • @andrewpan3047
    @andrewpan3047 2 года назад +1

    I am speechless, an amazing video as always. Do you have an idea how can I build a staking dapp for erc721, using one the providers, I would like to show the metadata picture, and a drag and drop

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +2

      Glad its helpful! And I do...but that might be a larger convo ahah.
      I'm releasing a massive tutorial in the coming months that will show you how to do everything. Stay tuned!

    • @andrewpan3047
      @andrewpan3047 2 года назад

      @@PatrickAlphaC hello frogs!! :)

  • @RahulinWeb3
    @RahulinWeb3 Год назад +1

    At 35:48 line 9 that is setIsConnected instead of setIsConnect.

  • @galibkiyaadein4627
    @galibkiyaadein4627 Год назад +1

    Sir please reply why we can't move ahead with html file ? Is it necessary to use library like react or framework like next js ??... confused 😕.....one more confusion you used ether.js and I know web3.js should I go towards web3 or ether ?

    • @PatrickAlphaC
      @PatrickAlphaC  Год назад

      You can use pure html, but a lot of projects want more tooling and so a framework gives easier flexibility to do "more"

  • @markeljan
    @markeljan Год назад

    If you are getting error in hardhat you need to add this to the solidity contract and restart hardhat node :
    receive() external payable {}
    fallback() external payable {}
    weird metamask bug that it defaults to sometimes.

  • @justintrudeou6099
    @justintrudeou6099 2 года назад +3

    listen .5 speed he sounds drunk and makes the tutorial even more fun

  • @stevendavies98
    @stevendavies98 2 года назад +1

    could you do a video on the + and minuses in your opinion of each option? I am a good react programmer, spend most of my time in html/js/css professionally and looking for the easiest route.

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      I think nextjs + moralis hooks are the easiest - they have a great button you can press that auto connects you. I’ve got some more vids coming out soon.
      Then, hosting on IPFS is dope

    • @stevendavies98
      @stevendavies98 2 года назад

      @@PatrickAlphaC i built a dapp for nfts but i now have a lottery type dapp in the work and am working thru the full course of yours. But if i can do it without react then it would i think be easier.. I also need to better understand smart contract security. Seems like easy mistakes will get it hacked. Thx for the reply.

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      @@stevendavies98 you can use raw html / cas, but I feel there are just so many good react tools right now.
      I’m working on more security content!

    • @stevendavies98
      @stevendavies98 2 года назад +1

      @@PatrickAlphaC thank you for all the content.

  • @oraclelong8290
    @oraclelong8290 2 года назад +1

    Amazing video!! can you teach how to build a Dapp website how to lock a token for a period of time aka Timelock.

  • @ramg4
    @ramg4 2 года назад

    How do i connect the dapp in my domain ? And how i connect metamask in a mainnet? Thanks I'm learning a lot 🤓

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      You’d need to host your site to something like vercel, moralis, or fleek, or do it yourself with IPFS (or if your a hardo - your own server).
      Look into vercel, that’ll be the right direction. To connect to mainnet, just change your metamask to mainnet

  • @ricotaline
    @ricotaline 2 года назад +3

    Whenever you use the terminal to do some stuff (yarn add ethers, etc), I'm completly lost and it doesn't work
    But the video is still nice :)

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      Feel free to make issues or watch my debugging video to learn how to get past the errors!

  • @mrfabio4904
    @mrfabio4904 2 года назад

    Hi Patrick,
    First of all thank you for your great tutorials. I was wondering if you can help me with a gas optimization question. Is there a way to contact you?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      Usually it’s best to ask in public my friend! I get too many DMs

  • @thisisnotfinancialadvice3803
    @thisisnotfinancialadvice3803 2 года назад

    Hey Patrick with the web3 react provider, do files in the pages/api folder have access to the same context

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      They should… I’d have to dig back out my examples to verify

    • @thisisnotfinancialadvice3803
      @thisisnotfinancialadvice3803 2 года назад

      @@PatrickAlphaC usual I execute from the components but for this project I’m basically trying to access the window.ethereum from the pages/api/execute.js file which executed most of my smart contract functions.

    • @thisisnotfinancialadvice3803
      @thisisnotfinancialadvice3803 2 года назад

      @@PatrickAlphaC but I’m not sure if that will work since the window object is not exposed outside web browser and next components

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      @@thisisnotfinancialadvice3803 yep! we look at a work around to fix that

  • @ToastyAlpha
    @ToastyAlpha 2 года назад +1

    When trying to use the terminal and yarn to add ethers it says “command not found”. What am I doing wrong?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      You probably haven’t installed yarn and/or nodejs. Be sure to check my GitHub repo

  • @christopher.cialone.python
    @christopher.cialone.python 2 года назад +1

    all hail.....{the little aliens from MIB } Patrick Patrick

  • @justintrudeou6099
    @justintrudeou6099 2 года назад

    how do i run a second function im trying to copy another button and adding another function but it keeps running the first one only on both buttons?

  • @ToastyAlpha
    @ToastyAlpha 2 года назад

    Sorry for so many comments but I am getting an error for “Command hardhat not found”. Do you know what could be the problem?

  • @Myox_
    @Myox_ 2 года назад

    Hey very good tutorial ! But i have a bug . When the user don't have a provider like metamask, i got a blank page with the error : Error: missing provider (argument="provider", value=undefined, code=INVALID_ARGUMENT. It is possile to make a condition somewhere to prevent this error ?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      Could you ask this on stack exchange ETH? Thanks!
      Watch my how to debug video for context

  • @cholakovit
    @cholakovit Год назад

    Hi, would you help me pls,
    I run in the command prompt: yarn hardhad node
    in your folder: hardhat-simple-storage-fcc
    as i was following your video tutorial, i got fake accounts and everything, but i didn't got SimpleStorage deployed at ... and the string. That is important and i can't move forward...

    • @PatrickAlphaC
      @PatrickAlphaC  Год назад

      Could you follow this guide?
      betterprogramming.pub/top-6-tips-to-solve-any-software-engineering-error-a794a162fcaf?sk=6a64ac6b056e6bc158ebe9eea72ea523

  • @Justobolsa
    @Justobolsa 2 года назад

    Patrick, I am trying to make the wallet still connected when refreshing. Because when you refresh it disconnects. Any help?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      I have a video coming out on this soonish!

  • @David-rz4vc
    @David-rz4vc 2 года назад

    What about brownie? Can we build react/next with it?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      You can!!!
      So you'd use brownie to make your smart contracts, and then just use nextjs/react on top of it. I have an example here. github.com/PatrickAlphaC/defi-stake-yield-brownie

  • @artmusic6937
    @artmusic6937 2 года назад +4

    ahhahaha @0:12 hahahah haha

    • @hitmeupontelegramamtvcg2033
      @hitmeupontelegramamtvcg2033 2 года назад

      Thanks for watching send me a direct massage for something profitable 👆📩❤️💯

  • @sweekiatwong8995
    @sweekiatwong8995 10 месяцев назад

    hey man i basically followed everything to a T, but i hit an error Error: contract runner does not support sending transactions (operation="sendTransaction", code=UNSUPPORTED_OPERATION, version=6.7.0) any idea how to get around it? love all the videos!

    • @PatrickAlphaC
      @PatrickAlphaC  10 месяцев назад

      hmm... could you make an issue on the repo?

  • @cryptoalpo3strong605
    @cryptoalpo3strong605 Год назад

    hi man how are you.this is a nice video.is it a way you can modify the script to delete or remove any contact calls you give permission to your wallet/

    • @PatrickAlphaC
      @PatrickAlphaC  Год назад

      what do you mean?

    • @cryptoalpo3strong605
      @cryptoalpo3strong605 Год назад

      @@PatrickAlphaC thanks for replying , but iihave already resolved my issue.my wallet was hacked and I was wondering if through python you can revoke a smart contract call by code

  • @Jazz__Dev
    @Jazz__Dev Год назад

    Hi Patrick, how are you able to acquire this much test ETH please?

    • @PatrickAlphaC
      @PatrickAlphaC  Год назад +1

      This was a long time ago, I can’t anymore

  • @danielsilva9502
    @danielsilva9502 Год назад

    For some reason I can't connect. I get the button, everything is correct in my code and I can't connect on the raw html/js
    even when I download the code from your repository it doesn't work. I'm on chrome, dunno if it makes a difference

    • @PatrickAlphaC
      @PatrickAlphaC  Год назад

      Can you make an issue on the repo? Thanks

  • @thenextbullrun2015
    @thenextbullrun2015 2 года назад +1

    Hi do you have a video on how to mine BTC and ETH with python code from A-Z

  • @araratmatinyan774
    @araratmatinyan774 2 года назад

    How to get metmask demo account with some ethereums for development?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      Go to the chainlink faucet for link and ETH faucets.chain.link/

  • @abirdutta326
    @abirdutta326 2 года назад

    i have metamask installed in my browser but when i try to window.ethereum it shows undefined????can anyone help me

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      Check out my how to debug anything video!

  • @newborn7850
    @newborn7850 2 года назад +1

    Sir pls teach us lottery DApp with frontend

  • @rjdverse
    @rjdverse 2 года назад +1

    Is there a way to connect to wallets using Python? 🥺

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      Omg I love this comment.
      Front ends basically run in javascript though... Im sorry. You can do some python stuff... but you'll have a really hard time if you do that

    • @rjdverse
      @rjdverse 2 года назад

      @@PatrickAlphaC What did I not do to see if I can get it working with Python, all options lead to an impasse. Thank you though 🙌🏾

  • @andrewtate8490
    @andrewtate8490 2 года назад +1

    my drilla

  • @maniacosscrypto9347
    @maniacosscrypto9347 2 года назад

    how do i set the amount to execute?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      You'd want to do a form and pull the form into your executive function.

    • @maniacosscrypto9347
      @maniacosscrypto9347 2 года назад

      @@PatrickAlphaC thanks bro!

  • @AyushSharma-ul9lc
    @AyushSharma-ul9lc 2 года назад

    Very good explanation. Keep it up. I just send you linkdin connection req hope u accept it

  • @eupasswood1402
    @eupasswood1402 2 года назад

    Patrick! Please tell me how can you have 9999.9 ETH in your Metamask?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      I’m running a local fake hardhat chain!

    • @eupasswood1402
      @eupasswood1402 2 года назад

      @@PatrickAlphaC Understand Patrick! Can you put here an Link to it?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      @@eupasswood1402 It’s in the description!

  • @mv-experiments
    @mv-experiments 2 года назад

    27:02 Please stop using require in the frontend. Use import instead and get rid of browserify.

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      Thanks for this! Some of the module stuff can be a bit confusing… I’m always looking for the least friction way to do this. If I use imports, users will run into issues with understanding modules.
      What do you think?

    • @mv-experiments
      @mv-experiments 2 года назад

      @@PatrickAlphaC I think, that it is strange to use a browser incompatible api, than 'fixing' it with something horrible like browserify. I don't see any way why it is a good idea to do so.
      import is the browser api to load modules. There are no reasons not to use it.
      I know you don't like Javascript (impossible to miss). But maybe you'd hate it a little less when you'd be using today's Javascript and not that from many years ago.

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      @@mv-experiments for the front end, I hate it less 😉
      But thanks for the feedback! I'll see if it's easier for others to understand going right from node -> front end if import or require makes more sense to them.

    • @mv-experiments
      @mv-experiments 2 года назад

      @@PatrickAlphaC It's technically wrong to use require, or any other nodejs specific API, for the browser. Plain and simple. You do people a huge disservice to tell them to use it. Especially when they learn how much browserify prevents a modern, productive development experience.

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      @@mv-experiments hmmm. Thanks for the thorough feedback. Appreciate it!

  • @bhagyalakshmi1053
    @bhagyalakshmi1053 Год назад

    Mackr dog,cat,bocin

  • @woojin7009
    @woojin7009 2 года назад +1

    hi Partrick! can you teach me about ethers.js?

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад +1

      Yes! FreeCodeCamp video coming soon…

    • @woojin7009
      @woojin7009 2 года назад +1

      @@PatrickAlphaC Thank you so much Patrick I made a portfolio after watching your videos. And I got to work for a blockchain company as an apprentice developer for two months.

    • @PatrickAlphaC
      @PatrickAlphaC  2 года назад

      @@woojin7009 OMG!!
      Are you on Twitter?? I’d love to share you story.

    • @woojin7009
      @woojin7009 2 года назад +1

      @@PatrickAlphaC @simujin11
      I have to upload images to ipfs using a hard hat and write JavaScript test codes, but I am struggling because I am not familiar with the JavaScript language.

  • @mengyuanwang5196
    @mengyuanwang5196 10 месяцев назад

    Hi, when I run 'yarn browserify index.js --standalone bundle -o ./dist/bundle.js' after I installed browserify, there is an error ' Command failed with exit code 1'. I cannot transplie index.js into browserified next,js. Do you have some suggestions? Thank you.

    • @PatrickAlphaC
      @PatrickAlphaC  10 месяцев назад

      hmm... I have a version of this in "raw" html/js instead of nodejs stuff. Perhaps try that? It should be in the github