How To Write a Solidity Smart Contract! - Hello World Pt 1

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

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

  • @AlchemyPlatform
    @AlchemyPlatform  3 года назад +11

    HELLO WORLD!! - Albert

  • @The_PC_Trader
    @The_PC_Trader 3 года назад +14

    One issue I ran into was at timestamp 33:40. After npx hardhat compile I received an error about private key too short, after troubleshooting it was at line 17 of the config file. For some reason "accounts : ['0x{PRIVATE_KEY}']" wasn't working but I got it to work with "accounts: [PRIVATE_KEY]... Putting this comment here in case anyone else has that issue. Great video!

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

      check for typo errors in your PRIVATE_KEY variable name

    • @RahulSingh-pf7uj
      @RahulSingh-pf7uj Год назад

      mine problem is opposite to yours its saying too long. How did you solved it?

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

      Thank you

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

    He seems very honest and inspirational. I would definitely like to hire him to help me.

  • @chiragtailor7782
    @chiragtailor7782 3 года назад +4

    Albert, you are an inspiration! Keep these videos coming!

  • @ZenCrypto-ov8zj
    @ZenCrypto-ov8zj 2 года назад

    Very helpful video. I would recommend mentioning what you're doing around 15:53 when you jump into hardhat. I had to go back and sort out what was going on through the text that is with the video on the website. The Metamask setup was very slow and thorough, but this very involved step of hardhat was skipped entirely.
    Thank you

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

      I was so confused what he went to until I read this lol thank you

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

    I had HH100 all the time even though I did everything correctly.
    Eventually I just saved all files I made in VS and ran it again. It worked!

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

    thanks for great tutorial. you made it easy to understand.

  • @baluv8015
    @baluv8015 3 года назад +4

    Awesome! Wow. You guys made this so easy.

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

    I really like the way you teach, thank you!

  • @CristianoRonaldo-qs2wp
    @CristianoRonaldo-qs2wp Год назад

    could you show an interaction with a payable function?
    Love your videos man!

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

    Awesome work Albert! I hope to be part of the Alchemy team one day.

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

    my hero Albert !!! big love

    • @AlchemyPlatform
      @AlchemyPlatform  3 года назад +1

      thanks Ken!!! - Albert

    • @KennyTVnow
      @KennyTVnow 3 года назад +1

      @@AlchemyPlatform omg the great cool guy is in the house!

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

    Thanks dude. You're the best.

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

    I don't understand what happens at 15:54. What is the program that you opened and how to download it?

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

    Thanks for the update

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

    I'm trying to deploy the contract using "npx hardhat run scripts/deploy.js --network ropsten" but then tells me that Network Ropsten dosnt exist.

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

      me too! how did u fixed it?

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

      Hi, have you been able to fix the issue. I also receive the same response

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

      Save files in VS. It will work. Even though now you can only do this with goerli network

    • @HanSolo-yu8gi
      @HanSolo-yu8gi Год назад

      Hey, i think the reason is u might have missed installing some of the hardhat dependencies, i faced a similar problem and realized this

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

    make folder 📁 npm init, package.json file appears, npm install -save-dev hardhat and node_modules and package-lock.json. all good til here, then npx hardhat and I get GLOBAL OPTIONS. What am I doing wrong ?

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

    How do you deploy the contract without private key, i've managed to get users to signed but i want them to use their wallet to deploy the contract.

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

    Awesome video. Thanks bro

  • @High.Five_Good.Vibess
    @High.Five_Good.Vibess 2 месяца назад

    why we need this smart contract? where could we use?

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

    Hello! After running the script, tells me error hh100 network ropsten doesn't exist

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

      check Stack Overflow or Ethereum Stackexchange for solutions!

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

    Is there a way to make metamask prompt for a password on deployment instead of placing your private key in the code?

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

    Anyone encounter an issue that couldn't get the private key in metamask when writing .env file?

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

    Siga firme com os videos! Te desejo toda sorte com o seu canal! Siga firme com os videos!
    te desejo toda sorte com o teu canal!

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

    What is the tool you used to write the ETH to wei conversion @15:26 ?

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

    The video is fine but the text of it should probably be updated to what is currently available. Also it seems my "HelloWorld" is in a loop of some kind during the deployment.

  • @RahulSingh-pf7uj
    @RahulSingh-pf7uj Год назад

    At 33:37 while compiling i got two errors (1)* Invalid value undefined for HardhatConfig.networks.sepolia.url - Expected a value of type string.
    (2)* Invalid account: #0 for network: sepolia - private key too short, expected 32 bytes
    i have saved the API_URL in string form in file .env , i don't understand why this error is comping up?
    and why its showing private key is too short its not in my hand metamask provided me that
    please help

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

    Thanks Albert.

  • @4kmotion743
    @4kmotion743 2 года назад

    sir please make an klaytn smart contract. there is no video on youtube

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

    i see you run on mac os; it is same for windows os?

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

    Hello! I have a contract for OpenSea, can I edit the code in Remix?

  • @RA-eg8tw
    @RA-eg8tw 3 года назад +2

    Awesome. Would be cool if you could eventually cover on to creating our own tokens from scratch, web3 implementations with our contracts and a an exercise where we create simple LP farm or a pancakeswap clone.

    • @AlchemyPlatform
      @AlchemyPlatform  3 года назад

      Great ideas!
      - Albert

    • @memexmoney
      @memexmoney 3 года назад

      I've found this video very helpful :) ruclips.net/video/XOvtnDx1m5c/видео.html

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

    Ropsten is deprecated on Alchemy (network dropdown selection)

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

    ropstenn is deprecated in alchemy now

  • @xinyiwu2837
    @xinyiwu2837 3 года назад

    Cool! I love Alchemy

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

    hey bro i wanna ask u if i should my nft name in the place of hello world or what ?

  • @bassemghoneim4904
    @bassemghoneim4904 3 года назад

    Is there anything like this for BSC? I am learning programming and smart contracts.
    I want to learn interact with an unpublished smart contract (on BSC) without the UI/website, it’s been a very difficult search but it seems like your videos could be relevant to me.
    Do you have any advice?

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

    on the moment of deploy "Error HH100: Network ropsten doesn't exist" uh oh

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

      i got rid of this error by updating the solidity version

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

      Save files in VS. It will work.

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

    Why is this metamask needed?

  • @pankajjoshi2547
    @pankajjoshi2547 3 года назад

    Pls teach us intermediate level project next

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

      subscribe to the channel and check out the other videos! :)

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

    Ive tried this tutorial after the ETH merge, ropsten is no longer available so was advised to use goerli, however, when I try to deploy the contract I get an error 100 message saying goerli doesn't exist... anyone had the same issue?

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

      Update your hardhat config file (add options for goerli network in "networks" field and defaultNetwork: "goerli"). Use deploy script with flag --network goerli.

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

      @@georgevoorhes2243 thanks for the response! I'm sure I've done this but still no luck. I must be missing something else...

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

      @@gtopanga4935 If you see something like "HH100: Selected network doesn't exist" then that means this is a standard hardhat error (hardhat have nice explanation about errors in their documentation). Anyway, try the same tutorial from Alchemy docs (not the video) for goerli - works fine for me.

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

      @@georgevoorhes2243 i get hh8 even thou i change everything to goerli

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

    constructive feedback:
    - keep your headshot overlay mounted in the bottom right corner. It's distracting when you move it around all the time.
    - don't get lost in unnecessary "side tutorials" like vscode shortcuts. There are countless tutorials you can just reference for this.
    - pay a designer to spend 5-10min polishing your slide deck. It will add that extra touch to make these vids the goto standard.

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

    Hello Albert I have one Channel in Europe about technology softwares and you want make a video collab?

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

    How do I deploy this on remix?

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

      we have another video on the channel for this!

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

    Wait do you work for the actual Alchemy company?

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

    For people struggling to deploy it through Visual Code Studio: Error HH100: Network goerli doesn't exist.
    I fixed it by deploying the HelloWorld.sol file through remix. There you can compile and deploy quite easily. I think there is something with the API provided by Alchemy else I have no clue why I got this issue whatever I did...You can also verify it easily once deployed through Remix.

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

      Save files in VS. It will work.

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

    when I run this command npm i --save-dev @nomiclabs/hardhat-ethers"ethers@^5.0.0" it cannot find the package does anyone else had this issue??

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

    Hi. I keep getting this error in my terminal when i want to deploy my contract - Error HH100: Network ropsten doesn't exist.

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

      me too! I am having the same error. Can someone give any advice, please?