Is there any way I can automatically test who can withdraw ether from a smart contract? I need to perform this test automatically. So I cannot manually inspect the instructions.
Can I design a smart contract in such a way that it becomes easy to test? I want to ensure that only the creator of the smart contract can withdraw ether through one specific function. I can easily test that this function exists, but how do I automatically test that no other function exists through which the creator (or any other person) of the smart contract can withdraw ether?
I am aware how to design a smart contract such that only the creator can withdraw ether. However, I need to automatically test who can withdraw ether from a smart contract that is given to me.