input-output-hk / plutus-apps

The Plutus application platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No instance for (ToArgument Slot)

DrXano opened this issue · comments

Summary

No instance for (ToArgument Slot)

Steps to reproduce the behavior

I got this when i used Slot as a type for the parameters of a function while coding in the Plutus Playground.
For example:

data ExampleParams = ExampleParams {
Param :: Slot
}
deriving stock (Prelude.Eq, Show, Generic)
deriving anyclass (FromJSON, ToJSON, ToSchema, ToArgument)

Actual Result

The Playground gives me that error when Slot is deriving ToArgument.

Expected Result

The Playground should compile Slot with ToArgument

Describe the approach you would take to fix this

No response

System info

Im using the online version of Plutus Playground

Thanks for the issue!