No instance for (Ord ThreadToken)
volodyad opened this issue · comments
volodyad commented
On starting Pab
runWith (Builtin.handleBuiltin @Contracts)
it gives compile error if thread token is a parameter
No instance for (Ord ThreadToken)
Evgenii Akentev commented
Well, it means that you are trying to use ThreadToken
somewhere and it requires Ord
type class.
Also, please note that StateMachine
at the moment is not usable on Test Net because of too big scripts size #11.
volodyad commented
My contract declaration looks like this
data MutualBetContracts =
MutualBetOwner MutualBetParams
| MutualBetUser ThreadToken MutualBetParams
deriving (Eq, Ord, Show, Generic)
deriving anyclass (FromJSON, ToJSON, OpenApi.ToSchema)
Evgenii Akentev commented
Please try 9c0cf02, it should work.