6 Smart Contract Best Practices | Do you know them all???

  Рет қаралды 13,844

EatTheBlocks

EatTheBlocks

Күн бұрын

Пікірлер: 36
@_benff
@_benff 2 жыл бұрын
Very informative thank you
@yadusolparterre
@yadusolparterre 2 жыл бұрын
THANK YOU FOR FINALLY HIRING NATIVE SPEAKERS !
@calvintorra
@calvintorra 2 жыл бұрын
We're all native somewhere :)
@cbrian4326
@cbrian4326 2 жыл бұрын
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 ?
@ShashankMestry
@ShashankMestry 2 жыл бұрын
Nicely Explained. Thank you.
@calvintorra
@calvintorra 2 жыл бұрын
Thank you for watching
@saintsaveier
@saintsaveier 2 жыл бұрын
nice thumbnail
@redvelvetzip
@redvelvetzip 2 жыл бұрын
awesome content
@calvintorra
@calvintorra 2 жыл бұрын
Thank you
@peterkariuki9475
@peterkariuki9475 2 жыл бұрын
Eattheblocks can you guys show us how to build a stable currency.
@fabifighter3347
@fabifighter3347 2 жыл бұрын
Hey, what's your opinion on PACT? It's a smart contract language
@hamzayousuf1087
@hamzayousuf1087 2 жыл бұрын
Learn alot from this channel ❤️❤️
@calvintorra
@calvintorra 2 жыл бұрын
Awesome thanks for watching
@mkznov
@mkznov 2 жыл бұрын
Hi if I want to start learning blockchain programming... where should I start?
@samueld.3810
@samueld.3810 2 жыл бұрын
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 ?
@calvintorra
@calvintorra 2 жыл бұрын
The require statement reverts the transaction if the transfer fails. That's why we refactor it.
@mota6450
@mota6450 2 жыл бұрын
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.
@charlienguyen878
@charlienguyen878 2 жыл бұрын
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!
@gustavocosta9574
@gustavocosta9574 2 жыл бұрын
Use the require(). Every time the statement fails it refunds the user's used gas.
@charlienguyen878
@charlienguyen878 2 жыл бұрын
@@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" :(
@nikolais6452
@nikolais6452 2 жыл бұрын
@@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
@charlienguyen878
@charlienguyen878 2 жыл бұрын
@@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 :(
@nikolais6452
@nikolais6452 2 жыл бұрын
@@charlienguyen878 it shouldnt be, is your code is on github?
@santhoshreddy1195
@santhoshreddy1195 2 жыл бұрын
I have a small doubt here. Is it ok to use transfer() if i'm following check-effect-interaction ? Anyone please clear my doubts...😳
@sinisinsini
@sinisinsini 2 жыл бұрын
Dont even
@calvintorra
@calvintorra 2 жыл бұрын
I think it's just not recommended anymore.
@santhoshreddy1195
@santhoshreddy1195 2 жыл бұрын
👍
@ECEvay
@ECEvay 2 жыл бұрын
Im back buddy
@vincentjadraque830
@vincentjadraque830 2 жыл бұрын
Is it just me or is best practice #3 exactly the same as best practice #5? Meaning these are only 5 best practice tips?
@calvintorra
@calvintorra 2 жыл бұрын
There's five ;) I messed up with the design team :(
@jaymac826
@jaymac826 2 жыл бұрын
Did he just go through and have a mass hiring of new people...??
@jopiesnack
@jopiesnack 2 жыл бұрын
I wish akudreams had seen this ;_;
@globalicon1222
@globalicon1222 2 жыл бұрын
thanks @SpeedSterToken #Bitcoin #TheSpeedSterToken #altcoin
@pankajjoshi8292
@pankajjoshi8292 2 жыл бұрын
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
@Madmax45571
@Madmax45571 2 жыл бұрын
Hi sir thank yu but i realy need to contact yu sir it is urgent
4 Fail Safe Strategies For Solidity Smart Contracts
4:56
EatTheBlocks
Рет қаралды 4,2 М.
Smart contracts - Simply Explained
4:17
Simply Explained
Рет қаралды 1,8 МЛН
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 20 МЛН
FOREVER BUNNY
00:14
Natan por Aí
Рет қаралды 37 МЛН
Advanced Smart Contract Hacking
35:17
RSA Conference
Рет қаралды 56 М.
Smart contract design patterns | Noah Citron
46:46
a16z crypto
Рет қаралды 3,9 М.
Top 7 Smart Contract Security Vulnerabilities @QuickNode
15:01
EatTheBlocks
Рет қаралды 11 М.
Israel Has The Right To Defend Itself | Stand-up Comedy by Daniel Fernandes
15:07
What are Smart Contracts in Crypto? (4 Examples + Animated)
8:09
Whiteboard Crypto
Рет қаралды 567 М.
The KEY To Thinking Like a Programmer (Fix This Or Keep Struggling)
10:39
I never understood why you can't go faster than light - until now!
16:40
FloatHeadPhysics
Рет қаралды 4,2 МЛН
The TRUTH About Golang Backend Frameworks
6:31
Melkey
Рет қаралды 131 М.