Hi @ppoluha,
Your destruct function header throws a compiler error. Can you resolve it?
Apart from that, your Destructible
contract is looking good, but it relies on you having made an additional change in Ownable
. So can we see that contract as well?
We also need to see what modifications you’ve made to the start of your Bank.sol file, and Bank contract header, for the inheritance, because that’s the contract we are actually deploying, using, and then destroying, and which, therefore, needs to inherit both the contract ownership and contract destruction functionality. Once completed successfully, you should be able to deploy Bank, perform some transactions, then destroy the Bank contract, transferring any remaining ether balance to the caller of the selfdestruct function (here, the contract owner).
Let us know if you have any questions