Description:Description\
It's considered best practice to implement zero address checks to prevent accidents. Contract would have to be redeployed if 'prover' address is set to zero.
Attack Scenario\
The protocol deploys 'MockDepositProcessor.sol' contract, passing address(0) as parameter.
Github username: -- Twitter username: -- Submission hash (on-chain): 0x0d98d311e4bd1a6e5b03be0590bc1d5f589301e0ee681c7bfca175bb9e80ba51 Severity: low
Description: Description\ It's considered best practice to implement zero address checks to prevent accidents. Contract would have to be redeployed if 'prover' address is set to zero.
Attack Scenario\ The protocol deploys 'MockDepositProcessor.sol' contract, passing address(0) as parameter.
Attachments
Proof of Concept (PoC) File
Revised Code File (Optional)
Add this line of code to the constructor :
require(_prover != address(0), "Invalid prover address");