https://celo.academy/t/hacking-a-smart-contract-exploiting-vulnerabilities-in-your-smart-contract-on-celo-and-a-guide-in-securing-it/1415
Inheritance
- Inherits from
lottery_proxy::LotteryProxy, suggesting that it uses the proxy functionalities to interact with the lottery contract.
Initialization
init(sc_address: ManagedAddress)
- Initializes the attacker contract with a specific lottery smart contract address.
- Verifies that the provided address is a valid smart contract, indicating that the attacker contract is designed to target a specific lottery contract.