Function InheritanceManager::createEstateNFT does mot work correctly when several NFTs are created.
Function InheritanceManager::createEstateNFT creates a new NFT and stores its value in nftValue mapping. Also, it stores assetToPay related to the NFT. The issue here is that if a new NFT is created with another asset, the assetToPay is overwritten and becomes not valid for the previous NFTs.
If there are several NFTs and they were created with different assets, the beneficiaries will pay for some of the NFTs incorrect assets.
Manual review
Use mapping for assets to pay:
InheritanceManager.sol:
Trustee.sol:
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.