What is the waiting period (iddah) required for a woman in the following scenario: She was married to a man through a temporary contract for a certain period, and they had consummated the marriage. After the contract period ended, she learned of the man's death, but she is unsure whether his death occurred before or after the end of the contract period. Should she observe the waiting period for death or the waiting period for a temporary marriage in this case?