spacebudz / lucid

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.
https://lucid.spacebudz.io
MIT License
341 stars 140 forks source link

sample-ada-transfer example not working #67

Closed lemmon-714 closed 2 years ago

lemmon-714 commented 2 years ago

Following the instructions, this is what I get (vasil branch):

Screenshot 2022-08-27 at 17 47 19

Maybe index.html is missing?

alessandrokonrad commented 2 years ago

Yes that is possible. This example was merged into the repository by someone else. I actually never ran it locally, was only looking at the .ts files, which do look fine to me. I have to look into it.

lemmon-714 commented 2 years ago

Not sure if this is worth another issue, but the other example with Plutus V2 also stopped working a while ago, without changes on my side, and the error is coming from Blockfrost, saying

transaction submit error ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (FromAlonzoUtxowFail (PPViewHashesDontMatch (SJust (SafeHash \"e433278151c963c7d3a65cc63a610cc43b14dc79422a6fb4186c5ea71d8905c0\")) (SJust (SafeHash \"3444b089b81dd8b1e98c3bb8b40afdfc1b980e790685d597d26e24cd528a876e\"))))])

My guesses are that there was an update, and either lucid did not follow with blockfrost (unlikely, since that would have been noticed by now), or the update changed how the script (V2) is being compiled, thus outdating the example.

alessandrokonrad commented 2 years ago

Not sure if this is worth another issue, but the other example with Plutus V2 also stopped working a while ago, without changes on my side, and the error is coming from Blockfrost, saying

transaction submit error ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (FromAlonzoUtxowFail (PPViewHashesDontMatch (SJust (SafeHash \"e433278151c963c7d3a65cc63a610cc43b14dc79422a6fb4186c5ea71d8905c0\")) (SJust (SafeHash \"3444b089b81dd8b1e98c3bb8b40afdfc1b980e790685d597d26e24cd528a876e\"))))])

My guesses are that there was an update, and either lucid did not follow with blockfrost (unlikely, since that would have been noticed by now), or the update changed how the script (V2) is being compiled, thus outdating the example.

I'm aware of this issue as I'm running into that myself for quite some time. Weirdly everything was working perfectly fine on one of the first testnets with the vasil changes. Since the public testnet bug was discovered things do not work anymore, also not on the other new testnets. It's a bit odd.

alessandrokonrad commented 2 years ago
transaction submit error ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (FromAlonzoUtxowFail (PPViewHashesDontMatch (SJust (SafeHash \"e433278151c963c7d3a65cc63a610cc43b14dc79422a6fb4186c5ea71d8905c0\")) (SJust (SafeHash \"3444b089b81dd8b1e98c3bb8b40afdfc1b980e790685d597d26e24cd528a876e\"))))])

Found the issue now. Will push an update soon

lemmon-714 commented 2 years ago

It works, thank you so much! Let me know if at any point in the future I can do something for you/the project.