I feel like option C is kind of tricky. I thought the checks-effects-interactions pattern was always necessary for external calls, not just when direct calls aren't possible.
I remember practicing a question similar to this, and I think it was about avoiding state changes after the call, which makes me lean towards option A.
Wait, I thought SMTP was just about the format of email messages, not the actual protocol for sending them. I'm going to have to review my notes on this before answering.
I'm just going to write 'All of the above' and hope the grader is in a good mood. Navigating these Solidity patterns is like trying to solve a Rubik's Cube blindfolded.
User 2: 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.
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.
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.
I think Option C is the right answer. The checks-effects-interactions pattern is only necessary when you can't directly call the other contract. Otherwise, it's overkill.
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.
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.
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.
I think both options have their merits, but I prefer following the checks-effects-interactions pattern, especially when direct contract calls are not possible.
Andrew
3 months agoWillard
4 months agoCarole
4 months agoEugene
4 months agoMelissa
4 months agoJanae
5 months agoElin
5 months agoTruman
5 months agoQuinn
5 months agoJacob
5 months agoWillis
5 months agoHermila
5 months agoLaurel
5 months agoMartha
10 months agoMiriam
8 months agoEnola
8 months agoKimberlie
9 months agoTasia
10 months agoDana
9 months agoLatrice
9 months agoAhmed
9 months agoElmer
9 months agoMartha
9 months agoCallie
9 months agoRoslyn
10 months agoGladys
9 months agoLuann
9 months agoClaudia
10 months agoClorinda
11 months agoXochitl
9 months agoMargot
9 months agoHollis
9 months agoTarra
9 months agoCamellia
9 months agoLashawn
10 months agoDerrick
10 months agoMargart
10 months agoMitzie
11 months agoRenea
11 months agoPercy
11 months agoKaitlyn
9 months agoDevon
10 months agoPolly
11 months agoVeta
11 months agoDick
11 months agoTayna
11 months ago