aiken-lang / aiken

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

I want tp calculate royality but it seems error #1037

Closed Plutusart2024 closed 1 week ago

Plutusart2024 commented 1 week ago

What is your idea? Provide a use case.

royalitry calculate in aiken-lang

Why is it a good idea?

We can Easily Caculate how much royality automatically

What is the current alternative and why is it not good enough?

i Wrote aiken-lang code it seems error here is the code

... xfunc handle_secondary_sale(nft_id: NFTID, sale_price: Amount) { let royalty = calculate_royalty(nft_id, sale_price); pay_creator(nft_id.creator, royalty); } ...

KtorZ commented 1 week ago

This isn't valid Aiken code. Please refer to the user manual: https://aiken-lang.org