Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spendScript[Ref] datum parameter purpose? #120

Open
KristianBalaj opened this issue Feb 3, 2024 · 0 comments
Open

spendScript[Ref] datum parameter purpose? #120

KristianBalaj opened this issue Feb 3, 2024 · 0 comments

Comments

@KristianBalaj
Copy link
Collaborator

What's the purpose of the Datum parameter since the actually used datum that is sent to validator is the actual one that is attached to the UTXO?

I.e. when I have a UTXO at the script address with datum "BUM" and use the on this UTXO:

spendScript script oref () "Hello"

Then when I send the transaction, the datum that arrives to the validator is the "BUM" datum instead of the "Hello" datum.

Maybe the Datum parameter could be removed to prevent confusion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant