ExamGecko
Question list
Search
Search

Question 80 - CBDE discussion

Report
Export

Using selfdestruct(beneficiary) with the beneficiary being a contract without a payable fallback function:

A.
will throw an exception, because the fallback function is non-payable and thus cannot receive ether.
Answers
A.
will throw an exception, because the fallback function is non-payable and thus cannot receive ether.
B.
it's impossible to secure a contract against receiving ether, because selfdestruct will always send ether to the address in the argument. This is a design decision of the Ethereum platform.
Answers
B.
it's impossible to secure a contract against receiving ether, because selfdestruct will always send ether to the address in the argument. This is a design decision of the Ethereum platform.
C.
selfdestruct doesn't send anything to a contract, it just re-assigns the owner of the contract to a new person. Sending ether must be done outside of selfdestruct.
Answers
C.
selfdestruct doesn't send anything to a contract, it just re-assigns the owner of the contract to a new person. Sending ether must be done outside of selfdestruct.
Suggested answer: B
asked 16/09/2024
Johan Wu
27 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first