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

Add iost token string with full precision #1224

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

jiqiren11
Copy link
Collaborator

No description provided.

@@ -348,7 +348,9 @@ func (as *APIService) GetAccount(ctx context.Context, req *rpcpb.GetAccountReque
frozen := dbVisitor.AllFreezedTokenBalanceDecimal("iost", req.GetName())
unfrozen, stillFrozen := as.getUnfrozenToken(frozen, req.ByLongestChain)
ret.FrozenBalances = stillFrozen
ret.Balance = unfrozen.Add(balance).Float64()
tmpBalance := unfrozen.Add(balance)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

rename it to 'totalBalance'

@cbdev01 cbdev01 merged commit 74f5008 into master Jun 28, 2024
2 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