|
|
|
|
|
by DennisP
3655 days ago
|
|
As the article briefly suggests, this problem can be completely avoided if every method has no more than one external call and always puts it last. I'm messing around with contracts to do about a dozen different things, and it turns out to be easy to meet this restriction, as long as I'm willing to design the UI accordingly. (E.g. don't send money to lots of users in one step, just update their balances and make them call a withdraw function.) |
|
Is there any form of auditing that contracts can go through to not have these pitfalls?
I wonder how many of them are still undiscovered...