Open DrXano opened 2 years ago
ScriptLookups
IS a Monoid instance (see module Ledger.Constraints.OffChain
in plutus-ledger-constraints
.
What's the code giving you this error?
I am literally just putting mempty
in a ScriptLookups
variable.
Were you using the mempty
from PlutusTx.Prelude
perhaps?
Summary
I wanted to initialise a State machine with
runInitialiseWith
with a certain Constraint. The first argument of the function is aScriptLookups
and i wanted to assign mempty since i don't want to pass any Lookup. But the playground is telling me this:I find this weird cause i can start a state machine with
runInitialise
and the function's source code is this:Steps to reproduce the behavior
Set some variable of the type
ScriptLookups a
tomempty
in the online Playground.Actual Result
It tells me there is no Monoid instance for
ScriptLookups a
.Expected Result
It should accept mempty.
Describe the approach you would take to fix this
No response
System info
The online Playground