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

AND-5742 [BlockchainSdk] Add checking utxo amount limit #425

Merged

Conversation

iMaks99
Copy link
Contributor

@iMaks99 iMaks99 commented Dec 29, 2023

No description provided.

@@ -29,9 +29,13 @@ class KaspaTransactionBuilder {

val unspentsToSpend = getUnspentsToSpend()

val change: BigDecimal = calculateChange(transactionData, unspentsToSpend)
val change = calculateChange(
amount = transactionData.amount.value!!,
Copy link
Contributor

Choose a reason for hiding this comment

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

Предлагаю через requireNotNull с текстом ошбки сделать

@iMaks99 iMaks99 force-pushed the feature/AND-5742_BlockchainSdk_Add_checking_utxo_amount_limit branch from 5ad5859 to fa7d65d Compare December 29, 2023 09:11
Mama1emon
Mama1emon previously approved these changes Dec 29, 2023
@iMaks99 iMaks99 force-pushed the feature/AND-5742_BlockchainSdk_Add_checking_utxo_amount_limit branch from fa7d65d to 6101215 Compare December 29, 2023 09:26
@iMaks99 iMaks99 merged commit 5e49ff0 into develop Dec 29, 2023
3 checks passed
@iMaks99 iMaks99 deleted the feature/AND-5742_BlockchainSdk_Add_checking_utxo_amount_limit branch December 29, 2023 09:43
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