IntersectMBO / plutus

The Plutus language implementation and tools
Apache License 2.0
1.55k stars 465 forks source link

No instance for ‘PlutusTx.Eq.Eq ScriptPurpose’ arising from a use of ‘lookup’ #6273

Open zlonast opened 6 days ago

zlonast commented 6 days ago

Summary

Сan you tell me where I'm wrong in my wishes? I want to do lookup (Rewarding sc) (txInfoRedeemers $ scriptContextTxInfo ctx), but in pr 6173 delete instance for PlutusTx.Eq.Eq ScriptPurpose

Steps to reproduce the behavior

add line to plutuscript lookup (Rewarding $ ScriptCredential $ ScriptHash hash) (txInfoRedeemers $ scriptContextTxInfo ctx)

Actual Result

error

Expected Result

no errors

Describe the approach you would take to fix this

Bring back the behavior that was there before?

System info

os: Ubuntu 22.04.3 plutus-core: 1.30

effectfully commented 6 days ago

@ana-pantilie you're probably equipped best to answer this one.