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!
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
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.
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.
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??
@@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!
@@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;
Jumped into several web3-related channels. None have explained it as well as you. Thanks!
Travis, bro you are so great. Please bring more courses. It's easy to follow up your contents. Thank you.
Travis you made Blockchain to understand like Nursery rhymes. Great way to let us learning . Instrumental in making career in blockchain.
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!
Wouldn't be surprised if this guy identified as a goat🐐🔥
when is the front-end part of this project dropping ?
Later next week the course will go live. Took me a little longer than expected.
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
Hey guys did u got front end.
Suppose I want to see a list os renters, or count a number of renters. How do I do that?
thanku travis where we can find the front end
travis.media/courses
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
Hi Travis I don't have any programming experience can I learn it
Can you make a simple bot with solidity for understanding how bot work
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?
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.
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.
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??
@@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!
@@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;
@Travis Media is it correct way ?
Front end pls. Thank you sir
The full course is live at courses.travis.media
Frontend pls ? Waiting
courses.travis.media
The full course is live at geni.us/GGTRi0p
👋🦾