Can I call another contract that eventually will call selfdestruct, and keep executing my function?
For example, say I have two contracts as follows:
contract Destructor {
address owner;
constructor() {
owner = msg.sender;
}
function done() public {
selfdestruct(owner);
}
}
contract Test {
...
function test(address dtor) public returns(bool) {
Destructor(dtor).done();
// Can I keep execution here after dtor was destructed?
bla += 42;
return true;
}
}
will bla += 42;
be executed and test()
will return true
?