Build a Bike Rental App in Solidity on the Binance Smart Chain

Поділитися
Вставка
  • Опубліковано 30 лис 2024

КОМЕНТАРІ • 28

  • @demiann4160
    @demiann4160 2 роки тому +1

    Jumped into several web3-related channels. None have explained it as well as you. Thanks!

  • @pil_low
    @pil_low 2 роки тому

    Travis, bro you are so great. Please bring more courses. It's easy to follow up your contents. Thank you.

  • @salmanabdulaziz7552
    @salmanabdulaziz7552 2 роки тому

    Travis you made Blockchain to understand like Nursery rhymes. Great way to let us learning . Instrumental in making career in blockchain.

  • @Nicogs
    @Nicogs Рік тому

    Thank you Travis! After giving up on Solidity a few months ago, back in the game after this tutorial.
    Simple, clear with a perfect project based exercise.
    I was wondering if there is a way (because it is still a smart-contract) to have someone deposit funds first for X amount of time and when timespan is bigger than X it returns the bike so that someone can't rent a bike for ever without ever turning it back?
    You should create more Solidity tutorials 🙆‍♂ you got yourself a new subscriber!

  • @AdilAli-lo7dq
    @AdilAli-lo7dq 2 роки тому

    Wouldn't be surprised if this guy identified as a goat🐐🔥

  • @AdilAli-lo7dq
    @AdilAli-lo7dq 2 роки тому +2

    when is the front-end part of this project dropping ?

    • @TravisMedia
      @TravisMedia  2 роки тому +1

      Later next week the course will go live. Took me a little longer than expected.

    • @pankajjoshi8292
      @pankajjoshi8292 2 роки тому

      Adil Ali did u got Front End part. If so pls let me know I am doing my Final year Bachelor Project on This. Thank you

    • @newborn7850
      @newborn7850 2 роки тому

      Hey guys did u got front end.

  • @moteteletsa2034
    @moteteletsa2034 2 роки тому

    Suppose I want to see a list os renters, or count a number of renters. How do I do that?

  • @mrshephu
    @mrshephu 2 роки тому

    thanku travis where we can find the front end

  • @MrSamay10
    @MrSamay10 8 місяців тому

    I took your subscription . for web3 development but your video is not very smooth its stuck i email many times but no one is responding . pls work on this

  • @satyendrakumar3319
    @satyendrakumar3319 2 роки тому

    Hi Travis I don't have any programming experience can I learn it

  • @gobindapaul8506
    @gobindapaul8506 2 роки тому

    Can you make a simple bot with solidity for understanding how bot work

  • @nanonkay5669
    @nanonkay5669 2 роки тому

    Why didn't you just make the rate 0.001 per minute? Isn't that the same thing without all the extra math to do in between?

  • @maheshbabusurepalli653
    @maheshbabusurepalli653 2 роки тому

    Thank you so much for the video, sir. Due is deducting twice from the wallet. The first time is while depositing ETH/BNB to the contract, the second time is while making the payment. Actually, while making the payment due should deduct from the deposited ETH/BNB. But, it is deducting again from my own wallet. Please correct me if there is anything wrong with my understanding.

    • @TravisMedia
      @TravisMedia  2 роки тому +1

      Hi Mahesh!. So when you deposit, it deposits to the smart contract balance, but it also credits the balance of the person depositing. If only I have deposited and I deposit $10, then the smart contract in total will have $10 AND that $10 will be allotted to my balance. So all $10 in the smart contract belongs to me. If I spend $8, then $8 is deducted from my balance. Nothing changes in the total on the smart contract, but NOW only $2 of the balance is mine. The other $8 now belongs to the owner of the contract. One thing I didn't include is a function for the owner to be able to withdraw regularly the amount that is his/hers after transactions are made. Could add that functionality if you desire. Please let me know if that helps clarify.

    • @maheshbabusurepalli653
      @maheshbabusurepalli653 2 роки тому

      For making the payment function we are using a payable modifier. So if you spend 8$. along with a deduction from your balance. 8$ more dollars will be added to the small contract. That means we are paying due twice right??

    • @TravisMedia
      @TravisMedia  2 роки тому

      @@maheshbabusurepalli653 Actually, you are exactly right. It's an oversight on my part, thanks for pointing it out. The fix is to update the makePayment function:
      1. Remove payable
      2. add a parameter of uint amount
      3. change the two occurences of msg.value to amount
      4. Then on the front end when calling this function we would need to pass in, converted to Wei format, the amount you are paying in addition to the walletAddress.
      This has been addressed in the upcoming course for this. Thanks again!

    • @dineshrambabukushwaha4757
      @dineshrambabukushwaha4757 2 роки тому

      @@TravisMedia Instead of adding another uint amount paramter, can we directly deduct from the balance param which is the amount stored in the bike Rental app in the initial deposit ? Bikers[walletAddress].balance -= Bikers[walletAddress].due;

    • @dineshrambabukushwaha4757
      @dineshrambabukushwaha4757 2 роки тому

      @Travis Media is it correct way ?

  • @newborn7850
    @newborn7850 2 роки тому

    Front end pls. Thank you sir

    • @TravisMedia
      @TravisMedia  2 роки тому

      The full course is live at courses.travis.media

  • @pankajjoshi8292
    @pankajjoshi8292 2 роки тому

    Frontend pls ? Waiting

  • @TravisMedia
    @TravisMedia  2 роки тому

    The full course is live at geni.us/GGTRi0p

  • @dsplnplnvt3257
    @dsplnplnvt3257 Рік тому

    👋🦾