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
5 months agoWillard
5 months agoCarole
6 months agoEugene
6 months agoMelissa
6 months agoJanae
6 months agoElin
6 months agoTruman
6 months agoQuinn
7 months agoJacob
7 months agoWillis
7 months agoHermila
7 months agoLaurel
7 months agoMartha
11 months agoMiriam
10 months agoEnola
10 months agoKimberlie
11 months agoTasia
12 months agoDana
10 months agoLatrice
10 months agoAhmed
10 months agoElmer
10 months agoMartha
10 months agoCallie
10 months agoRoslyn
12 months agoGladys
11 months agoLuann
11 months agoClaudia
11 months agoClorinda
1 year agoXochitl
10 months agoMargot
10 months agoHollis
10 months agoTarra
10 months agoCamellia
11 months agoLashawn
11 months agoDerrick
11 months agoMargart
12 months agoMitzie
1 year agoRenea
1 year agoPercy
1 year agoKaitlyn
11 months agoDevon
11 months agoPolly
1 year agoVeta
1 year agoDick
1 year agoTayna
1 year ago