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

Fix validateOutputAmount API for BigNumber #106

Merged

Conversation

Shadouts
Copy link
Contributor

outputs/validateOutputAmount is requiring a BigNumber type on its args. This leaks lib dependencies onto the caller. Previously a version of unchained-bitcoin had removed the BigNumber dependency from its API. This function must have been missed.

Unfortunately this change would require a major version increment since an arg type is updating and breaking backward compatibility.

@Shadouts Shadouts requested a review from bucko13 December 14, 2023 23:24
src/outputs.ts Outdated Show resolved Hide resolved
fix: preserve backward compatibility
@Shadouts Shadouts force-pushed the prevent-bignumber-exposure branch from 9ee5cd4 to fc03111 Compare December 15, 2023 21:18
@Shadouts Shadouts requested a review from bucko13 December 15, 2023 21:18
@Shadouts
Copy link
Contributor Author

I've changed this to offer backward compatibility on the function. Any future major version should remove the BigNumber type from the arg.

@bucko13 bucko13 merged commit 9081171 into unchained-capital:master Dec 15, 2023
3 checks passed
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