When you do external calls to other smart contracts:
A) you should follow the checks-effects-interactions pattern and avoid state changes after the call.
B) you should follow the effects-checks-interactions pattern and avoid state changes before the call.
C) you should follow the checks-effects-interactions pattern, which is only necessary when you do calls to contracts where a direct contract call is not possible.
Correct Answer:
Verified
Q44: It's easy to write clean-room unit-tests with
Q45: What's the difference between Ethereum Request for
Q46: When using assert to check invariants and
Q47: Address.call.value():
A) sends the gas stipend of 2300
Q48: Using selfdestruct(beneficiary) with the beneficiary being a
Q50: Truffle:
A) is a framework that helps developers
Q51: It's not possible to use inheritance from
Q52: Unit-Testing on a local chain is important,
Q53: To generate a random number:
A) it's good
Q54: Inheritance is useful, because a contract that
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents