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

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

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

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

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

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

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

  • @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.

  • @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🐐🔥

  • @MrSamay10
    @MrSamay10 6 หลายเดือนก่อน

    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

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

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

  • @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.

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

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

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

    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?

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

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

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

    thanku travis where we can find the front end

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

      travis.media/courses

  • @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 ปีที่แล้ว

      courses.travis.media

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

    The full course is live at geni.us/GGTRi0p

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

    👋🦾