Skip to content

Conversation

@tolikzinovyev
Copy link
Contributor

Summary

Indexer needs the list of deleted local creatable states. This PR adds this information in ledger's state delta.

Test Plan

Added unit tests.

Comment on lines +141 to +144
err = balances.DeallocateAsset(creator, cc.ConfigAsset, false)
if err != nil {
return err
}
Copy link
Contributor

Choose a reason for hiding this comment

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

double call does not look good, how about adding bit flags specifying global or local, or both.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What's wrong with double call? Asset params and asset holdings are modified separately in account data.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Balance interface is simpler as is.

Copy link
Contributor

Choose a reason for hiding this comment

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

Calling twice is a clear indication that the interface is wrong.. I'd agree with Pavel that we should update the function call.

@tsachiherman tsachiherman merged commit 358a2e1 into algorand:master Aug 3, 2021
@tolikzinovyev tolikzinovyev deleted the modified-local-2 branch January 6, 2022 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants