Hi thank you for the great video. I have a question that I want to know why now is not recommending the transfer or send ?
@ShashankMestry2 жыл бұрын
Nicely Explained. Thank you.
@calvintorra2 жыл бұрын
Thank you for watching
@saintsaveier2 жыл бұрын
nice thumbnail
@redvelvetzip2 жыл бұрын
awesome content
@calvintorra2 жыл бұрын
Thank you
@peterkariuki94752 жыл бұрын
Eattheblocks can you guys show us how to build a stable currency.
@fabifighter33472 жыл бұрын
Hey, what's your opinion on PACT? It's a smart contract language
@hamzayousuf10872 жыл бұрын
Learn alot from this channel ❤️❤️
@calvintorra2 жыл бұрын
Awesome thanks for watching
@mkznov2 жыл бұрын
Hi if I want to start learning blockchain programming... where should I start?
@samueld.38102 жыл бұрын
Can anyone help with what said here ? 1:19 Why the contract would be on an unsolvable state ? What will make it unsolvable ? What about updating the highest bidder and highest bid only if the refunds succeeds ?
@calvintorra2 жыл бұрын
The require statement reverts the transaction if the transfer fails. That's why we refactor it.
@mota64502 жыл бұрын
Thank you for this, I used slither for static analysis checks on my contracts and I came across a warning about updating local state after making external calls but this external call happens to be emitted events based on a condition; should I be worried about this? I’d like to think event emitters are harmless and can’t cause reentrancy.
@charlienguyen8782 жыл бұрын
hello, thank you for the video, very useful. I have a question hope you can help me. So basically I have a smart contract, in which I have 2 functions: 1 is to view the state (which costs 0 gas) and 1 is to change the state (obviously costs gas). The second function will be triggered by an "if condition" based on the return value of the view function. What I want to ask is: is there a way so that I can call my contract and only pay gas when the "if condition" is met. Because apparently right now I have to pay gas every time I call it, even tho the if condition is not met and the state-change function is not triggered. Thanks so much. god bless you!
@gustavocosta95742 жыл бұрын
Use the require(). Every time the statement fails it refunds the user's used gas.
@charlienguyen8782 жыл бұрын
@@gustavocosta9574 thank you for your reply. I have tried to put the require() in front of the code but it still charges fee after saying "message":"execution reverted" :(
@nikolais64522 жыл бұрын
@@charlienguyen878 it charges significantly less tho, the only way it is possible is to check the state off chain, and execute the transaction only when state is true
@charlienguyen8782 жыл бұрын
@@nikolais6452 this is the way I've been doing, but doing so results in significant delay in getting your transaction included in the next block, even if I'm running my own relayer node :(
@nikolais64522 жыл бұрын
@@charlienguyen878 it shouldnt be, is your code is on github?
@santhoshreddy11952 жыл бұрын
I have a small doubt here. Is it ok to use transfer() if i'm following check-effect-interaction ? Anyone please clear my doubts...😳
@sinisinsini2 жыл бұрын
Dont even
@calvintorra2 жыл бұрын
I think it's just not recommended anymore.
@santhoshreddy11952 жыл бұрын
👍
@ECEvay2 жыл бұрын
Im back buddy
@vincentjadraque8302 жыл бұрын
Is it just me or is best practice #3 exactly the same as best practice #5? Meaning these are only 5 best practice tips?
@calvintorra2 жыл бұрын
There's five ;) I messed up with the design team :(
@jaymac8262 жыл бұрын
Did he just go through and have a mass hiring of new people...??
Hi Folks ! In remix id . In remix id , I have an issue can anyone help me. How to transfer ether from one account to another account / smart contract as parameter of a function without using Value Textbox in remix id. Example Function donate(uint eth) public payable { msg.sender.balance -= eth; // balance gets deducted from.account } I do not want to use value button in remix ide , because we all have to make frontend later and ether amount must be passed a parameter of any function . I am currently stuck here After this project is completed I will post it back for others to learn and integrate solidity frontend truffle and ganache. Thankx mates
@Madmax455712 жыл бұрын
Hi sir thank yu but i realy need to contact yu sir it is urgent