IntersectMBO / plutus-apps

The Plutus application platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChainIndex used to handle datum from hash. Now it doesn't

waalge opened this issue · comments

Summary

How was
https://github.com/input-output-hk/plutus-apps/blob/f530b83b25345d09c1acd708f9f3a2e16137d7bb/plutus-chain-index/src/Plutus/ChainIndex/Handlers.hs#L190

How it is
https://github.com/input-output-hk/plutus-apps/blob/e4062bca213f233cdf9822833b07aa69dff6d22a/plutus-chain-index-core/src/Plutus/ChainIndex/Handlers.hs#L148

Statemachine needs a Right Datum in the return, which its not getting

Steps to reproduce the behavior

Actual Result

Expected Result

Describe the approach you would take to fix this

Not sure what the spec is here.
Should this be handled by the PAB+Contract or is this the responsibility of the chain index?

Probably having the PAB handle the query is best (as it was)

System info