Skip to content

Conversation

@cpatino-intive
Copy link
Contributor

feat(awm): fix consolidate unspent response

Comment on lines 43 to 45
if (Array.isArray(result) && result.length > 0) {
result = result[0];
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (Array.isArray(result) && result.length > 0) {
result = result[0];
}
if (Array.isArray(result)) {
if(result.length === 1) result = result[0];
else throw 500
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@cpatino-intive cpatino-intive force-pushed the WP-5491/consolidateunspents-issue branch from c36f34f to da4c125 Compare August 19, 2025 16:05
@pranavjain97 pranavjain97 merged commit 5eefcdd into master Aug 20, 2025
4 checks passed
@pranavjain97 pranavjain97 deleted the WP-5491/consolidateunspents-issue branch August 20, 2025 17:32
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.

3 participants