Closed peter-mlabs closed 8 months ago
Probably not intended. Seems simple to fix though.
Neither Koz nor I can reproduce failure on 1/1 #== 2/2
. Plutarch doesn't expose constructor for PRationalData
and it only allows values to be lifted from PlutusTx.Rational. And all constructors of PlutusTx.Rational
reduce the rational given. Both 1/1
and 2/2
will be reduced to 1/1
.
Bug on POrd instance is fixed
appears to evaluate to false. The instance is autoderived (while neither
PRational
norPlutusTx.Rational
are autoderived), so I'm assuming that either its broken entirely or assumes it is reduced.Likewise,
1/1 #== 2/2
appears to evaluate to false.