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

feat: add reference inputs used lang to script hash calc #127

Conversation

joacohoyos
Copy link
Contributor

@joacohoyos joacohoyos commented Sep 9, 2022

When using just script reference inputs no languages were passed to the calc script hash function. This caused an error in the generated safe hash not allowing the tx to be submitted.

Now, we go through both inputs and reference inputs and if there is a script in any of them we add the language

cc: @MicroProofs

rust/src/builders/tx_builder.rs Outdated Show resolved Hide resolved
rust/src/builders/tx_builder.rs Outdated Show resolved Hide resolved
rust/src/builders/tx_builder.rs Outdated Show resolved Hide resolved
@joacohoyos joacohoyos force-pushed the clark/add-languages-to-safe-hash-calc-for-reference-inputs branch from d073f18 to 984e637 Compare September 9, 2022 18:47
@joacohoyos joacohoyos requested review from SebastienGllmt and removed request for MicroProofs September 9, 2022 18:51
Copy link
Contributor

@SebastienGllmt SebastienGllmt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SebastienGllmt SebastienGllmt merged commit 7267693 into dcSpark:develop Sep 9, 2022
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

Successfully merging this pull request may close these issues.

2 participants