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: improve hasEnoughAda check when setting collateral #1578

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

greatertomi
Copy link
Contributor

@greatertomi greatertomi commented Dec 5, 2024

Checklist

  • JIRA - LW-11927
  • Proper tests implemented
  • Screenshots added.

Proposed solution

Instead of using maxAda value, build a transaction with only the collateral. If the transaction succeed, the wallet has enough ada for collateral.

@greatertomi greatertomi requested a review from a team as a code owner December 5, 2024 11:41
@greatertomi greatertomi force-pushed the fix/lw-11927-collateral-issue branch from 7a00d8e to 3273e96 Compare December 5, 2024 11:42
@pczeglik-iohk
Copy link
Contributor

pczeglik-iohk commented Dec 5, 2024

Allure Report

allure-report-publisher generated test report!

processReports: ✅ test report for 5feee55e

passed failed skipped flaky total result
Total 32 0 4 0 36

@greatertomi greatertomi force-pushed the fix/lw-11927-collateral-issue branch from 3273e96 to 9f9e5d1 Compare December 5, 2024 20:59
@greatertomi greatertomi changed the title fix: increase ada buffer limit in max ada calculation fix: improve hasEnoughAda check when setting collateral Dec 5, 2024
@greatertomi greatertomi force-pushed the fix/lw-11927-collateral-issue branch from 9f9e5d1 to 9fab585 Compare December 6, 2024 11:53
Copy link
Contributor

@vetalcore vetalcore left a comment

Choose a reason for hiding this comment

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

please fix lint/prettier issues first

@greatertomi greatertomi force-pushed the fix/lw-11927-collateral-issue branch from 9fab585 to f53d85d Compare December 6, 2024 12:30
@greatertomi greatertomi requested a review from vetalcore December 6, 2024 12:35
Copy link

sonarcloud bot commented Dec 6, 2024

@greatertomi greatertomi merged commit 242e0ff into main Dec 9, 2024
30 checks passed
@greatertomi greatertomi deleted the fix/lw-11927-collateral-issue branch December 9, 2024 17:00
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