well i solved it but i couldn't understand the point of this challenge so i know that the first mistake is linking the interface with msg.sender and the second mistake is that they should declare _buyer.price() once and store it in variable but you can execute if block only one time bcz isSold after change to true you will never be able to access it again so what is the point if you buy the item with 100 and you can't buy it again with 0 its the exact same as Elevator challenge
Code->function buy() public{ shop.buy; } Error-> contracts/Shop_Attack.sol:14:5: Warning: Function state mutability can be restricted to view function buy() public{ ^ (Relevant source part starts here and spans across multiple lines). I did everything same but price didn't change to 0 what sould I do?
Thank you for those amazing video. It's a lot easier with good explanation and an awesome teacher !!!
Thank you for the kind words. :)
Tysm !! Started following it and I am loving this series ! Please don't stop 🙌
Thank you so much for watching and I'm glad you're able to take something away 😸
Awesome explanation once again. Thanks a ton Dylan!
Thank you for following along. :)
thank you, you're the best
I really appreciate the kind words 😄
did you make a backup?? for before the ubuntu update?
I was able to find an alternative app, but yeah I did backup my partitions :)
well i solved it but i couldn't understand the point of this challenge so i know that the first mistake is linking the interface with msg.sender and the second mistake is that they should declare _buyer.price() once and store it in variable but you can execute if block only one time bcz isSold after change to true you will never be able to access it again so what is the point if you buy the item with 100 and you can't buy it again with 0 its the exact same as Elevator challenge
Code->function buy() public{
shop.buy;
}
Error-> contracts/Shop_Attack.sol:14:5: Warning: Function state mutability can be restricted to view
function buy() public{
^ (Relevant source part starts here and spans across multiple lines).
I did everything same but price didn't change to 0
what sould I do?
you should call function buy() like this:
shop.buy();
@@SuperJackdrummer Thank you for the assist 💗