Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Blockchain Exam CBDE Topic 2 Question 72 Discussion

Actual exam question for Blockchain's CBDE exam
Question #: 72
Topic #: 2
[All CBDE Questions]

When you do external calls to other smart contracts:

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Martha
14 days ago
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.
upvoted 0 times
...
Tasia
24 days ago
Wait, so we have to do a dance before, during, and after the external call? This exam is turning into the Hokey Pokey!
upvoted 0 times
...
Roslyn
1 months ago
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.
upvoted 0 times
Claudia
15 days ago
A) you should follow the checks-effects-interactions pattern and avoid state changes after the call.
upvoted 0 times
...
...
Clorinda
1 months ago
I'm not sure about that 'effects-checks-interactions' thing. Isn't it better to just avoid state changes altogether when making external calls?
upvoted 0 times
Camellia
8 days ago
A) you should follow the checks-effects-interactions pattern and avoid state changes after the call.
upvoted 0 times
...
Lashawn
15 days ago
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.
upvoted 0 times
...
Derrick
16 days ago
B) you should follow the effects-checks-interactions pattern and avoid state changes before the call.
upvoted 0 times
...
Margart
1 months ago
A) you should follow the checks-effects-interactions pattern and avoid state changes after the call.
upvoted 0 times
...
...
Mitzie
1 months ago
But what about option C? It says it's necessary for calls to contracts where a direct contract call is not possible.
upvoted 0 times
...
Renea
2 months ago
I agree with Polly, it helps to avoid state changes after the call.
upvoted 0 times
...
Percy
2 months ago
Option A is definitely the way to go. Following the checks-effects-interactions pattern is crucial to avoid reentrancy vulnerabilities.
upvoted 0 times
Kaitlyn
9 days ago
User 2: I agree, following the checks-effects-interactions pattern is crucial to avoid reentrancy vulnerabilities.
upvoted 0 times
...
Devon
22 days ago
User 1: Option A is definitely the way to go.
upvoted 0 times
...
...
Polly
2 months ago
I think when doing external calls, we should follow the checks-effects-interactions pattern.
upvoted 0 times
...
Veta
2 months ago
I think both options have their merits, but I prefer following the checks-effects-interactions pattern, especially when direct contract calls are not possible.
upvoted 0 times
...
Dick
2 months ago
I disagree, I believe we should follow the effects-checks-interactions pattern and avoid state changes before the call.
upvoted 0 times
...
Tayna
2 months ago
I think when doing external calls, we should follow the checks-effects-interactions pattern and avoid state changes after the call.
upvoted 0 times
...

Save Cancel