Open SeungheonOh opened 1 month ago
Why do you need this?
I don't know @peter-mlabs asked.
Forbidding negative number for PPOSIXTime was over constraint to why not
Are we sure negative times are allowed onchain as such?
Yeah, it seems to work as expected. There's not special invariant on PlutusLedgerApi
It's almost always invalid on-chain.
Nevertheless, I don't think there's any good reason to maintain this invariant in Plutarch.
PPOSIXTime
should be able to store negative integer to store time before 1/1/1970. Currently, instances ofPPOSIXTime
forbids its value going negative