Skip to content

Support for contract call with reference inputs #1

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

Closed
satran004 opened this issue Mar 5, 2023 · 3 comments
Closed

Support for contract call with reference inputs #1

satran004 opened this issue Mar 5, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@satran004
Copy link
Member

satran004 commented Mar 5, 2023

In v0.0.2, if transaction has reference inputs, script evaluation fails with following error.

RedeemerError { tag: "Spend", index: 0, err: ResolvedInputNotFound }

Workaround : During the transaction cost evaluation, remove the reference inputs from the transaction and add the plutus script to the witness set. After calculating the script cost, you can add back the reference input again.

@matiwinnetou
Copy link
Collaborator

Isn't already done in CCL 0.5-alpha?

@satran004
Copy link
Member Author

Yes, it is included in 0.5.0-alpha.2. However, due to the package renaming in Cardano Client Lib, it is required to update the Aiken Java Binding accordingly

@satran004
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants