aiken-lang / aiken

A modern smart contract platform for Cardano
https://aiken-lang.org
Apache License 2.0
484 stars 96 forks source link

Gift Card example using module cardano/transaction/value #1050

Closed JustLeif closed 3 weeks ago

JustLeif commented 3 weeks ago

First

Thank you very much for your work on Aiken. It cannot be stated how much I appreciate you trying to make development on Cardano more approachable.

Describe what the problem is?

The documentation for the gift card example uses a module that doesn't appear in the newest version of the standard library.

Screenshot 2024-11-02 at 11 47 47 Screenshot 2024-11-02 at 11 47 36 Screenshot 2024-11-02 at 11 51 06

What should be the expected behavior?

I assume there is a new module or function that replaces the logic of the value.from_minted_value & value.tokens(policy_id)? I would offer a PR to fix this issue, but I'm very new to Cardano smart contract development and not sure if it is even an issue or maybe I made a mistake.