No instance for (ToArgument Slot)
DrXano opened this issue · comments
Dr Xano commented
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
Evgenii Akentev commented
Thanks for the issue!