mlabs-haskell / seabug-contracts

3 stars 1 forks source link

Implement contract for fetching a single NFT #16

Closed rynoV closed 2 years ago

rynoV commented 2 years ago

Frontend needs this for the individual item pages

Plan:

rynoV commented 2 years ago

Not sure if ogmios will return a spent tx output, have to check

Checked, doesn't look like it, it will error. Makes sense since the query is for a Utxo

rynoV commented 2 years ago

If the utxo has been spent, requery the script address to find the updated utxo for the current item page

This seems like it would be better suited to the frontend. The contract should probably be minimal and just indicate in its return type if the txo has been spent