Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

No instance for (Ord ThreadToken) #157

Closed
volodyad opened this issue Dec 1, 2021 · 3 comments · Fixed by #159
Closed

No instance for (Ord ThreadToken) #157

volodyad opened this issue Dec 1, 2021 · 3 comments · Fixed by #159
Labels
bug Something isn't working

Comments

@volodyad
Copy link

volodyad commented Dec 1, 2021

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

@volodyad volodyad added the bug Something isn't working label Dec 1, 2021
ghost pushed a commit that referenced this issue Dec 1, 2021
@ghost
Copy link

ghost commented Dec 1, 2021

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
Copy link
Author

volodyad commented Dec 1, 2021

My contract declaration looks like this

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

@ghost ghost closed this as completed in #159 Dec 1, 2021
ghost pushed a commit that referenced this issue Dec 1, 2021
@ghost
Copy link

ghost commented Dec 1, 2021

Please try 9c0cf02, it should work.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant