Some functions that modify the contract when called by the owner do not reset the 90-day timer.
According to the docs, assets can be dstributed to beneficiaries after a set period of wallet inactivity. The functions InheritanceManager::removeBeneficiary and InheritanceManager::contractInteractions should reset the 90-day timer, as they involve contract interactions and modifications.
Failure to reset the timer breaks the core assumption of the contract: beneficiaries should only inherit funds after 90 days of wallet inactivity.
Add the following code to the InheritanceManagerTest.t.sol file within the InheritanceManagerTest contract (example for InheritanceManager::removeBeneficiary function).
Manual Review
Foundry
The functions InheritanceManager::removeBeneficiary and InheritanceManager::contractInteractions should call the internal function InheritanceManager::_setDeadline to reset the 90-day timer after performing their operations.
Proposed changes:
This ensures that any owner interaction resets the timer, maintaining the contract’s intended functionality.
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.