You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current, above compiles fine with DeriveAsDataStruct because strategy actually don't check if each field is PIsData. Instead, it checks to see if PInnerMost of each fields are PData. This is to reduce requiring PIsData constraint on every polymorphic types. Technically, it is fine as it is. Since there's no instance PIsData (PBuiltinList Crypto.PPubKeyHash), it is impossible to construct such value altogether.
But, I'd like to have this fail on compilation for better UX
The text was updated successfully, but these errors were encountered:
Current, above compiles fine with
DeriveAsDataStruct
because strategy actually don't check if each field isPIsData
. Instead, it checks to see if PInnerMost of each fields are PData. This is to reduce requiringPIsData
constraint on every polymorphic types. Technically, it is fine as it is. Since there's no instancePIsData (PBuiltinList Crypto.PPubKeyHash)
, it is impossible to construct such value altogether.But, I'd like to have this fail on compilation for better UX
The text was updated successfully, but these errors were encountered: