IntersectMBO / plutus-apps

The Plutus application platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No instance for (Ord ThreadToken)

volodyad opened this issue · comments

On starting Pab
runWith (Builtin.handleBuiltin @Contracts)
it gives compile error if thread token is a parameter
No instance for (Ord ThreadToken)

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.

My contract declaration looks like this

data MutualBetContracts = 
    MutualBetOwner MutualBetParams
    | MutualBetUser ThreadToken MutualBetParams
    deriving (Eq, Ord, Show, Generic)
    deriving anyclass (FromJSON, ToJSON, OpenApi.ToSchema)

Please try 9c0cf02, it should work.