Blockchain CBDE Exam - Topic 5 Question 125 Discussion
Using selfdestruct(beneficiary) with the beneficiary being a contract without a payable fallback function:
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.
A) will throw an exception, because the fallback function is non-payable and thus cannot receive ether.
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.
Marge
3 days agoBernardo
8 days agoQueenie
13 days agoTheodora
18 days agoColette
23 days agoKenny
29 days agoAdaline
3 months agoMargart
3 months agoEvangelina
3 months agoLashawn
3 months agoLeslie
4 months agoJamika
4 months ago