Functions in contract MondrianWallet2
are not usable if the contract has not been initialized after deployment
External functions in contract MondrianWallet2
will revert with EvmError if the contract is not initialized after deployment. This could cause user in doubts with no clear clues of the failed calls and waste fees on making calls to transaction functions that will eventually fail due to no initialization done.
Proof of Concept:
In the file test/ModrianWallet2Test.t.sol
, comment out the initization codes in the setUp
function :
Test functions that required a prior initialization will fail for EvmError and revert with no clear message even with high verbosity added during forge test
Core functions in contract MondrianWallet2
are not usable and revert with no clear message, wasting user's fund to pay gas fees. This could also limit the contract’s intended operations until proper setup is done.
Manual review
Include condition check on all external functions that require prior ownership and upgrada related initalization. Implement a clear initialization error message to divert user on what they shall do instead of carrying out multiple effortful attempts on those function calls.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.