1

Say, I create a smart contract A and this contract creates another smart contract B. If I call selfdestruct on A, will this affect in any way contract B? Or can I still call functions on B after A is killed?

I found this example on Etherscan:

Contract A is selfdestructed and therefore has no code anymore. B also has empty code, but it does not have the red SelfDestruct label on Etherscan. So did the SelfDestruct of A lead to a deletion of B's code or is this just coincidence and this contract B never had any code associated with it at all?

1 Answer 1

4

No. selfdestruct of a contract does not effect any contracts created by the contract to be destroyed.

1
  • Thanks, do you have a source or maybe even a concrete example where this is the case?
    – hefeleal
    Commented Sep 10, 2018 at 16:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.