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: 🐛 Correct assertion on zero asset balance in portfolio #50

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

prashantasdeveloper
Copy link
Contributor

Description

In the latest develop changes on core side, when a asset balance reaches zero in a portfolio, that value is removed from portfolio.portfolioAssetBalances storage. Here is the core change - PolymeshAssociation/Polymesh@a79a4ae#diff-fb1ae7635150b89447e4ab169b054826ada7d83a632fb647bea7f55a323385a7

This fixes the assertion where it was expected to get zero balance for the same when querying the portfolio details. Now it just returns empty array of asset balances

Breaking Changes

NA

JIRA Link

Checklist

  • Updated the Readme.md (if required) ?

@prashantasdeveloper prashantasdeveloper requested a review from a team as a code owner March 5, 2025 07:29
@prashantasdeveloper
Copy link
Contributor Author

/fast-forward

@polymesh-bot polymesh-bot merged commit ec1c188 into master Mar 5, 2025
4 checks passed
@polymesh-bot polymesh-bot deleted the fix/asset-balance-test branch March 5, 2025 12:54
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