You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current code always increases and decreases the balance even if we have no updates. It means storage read and write and spends a lot of resources for nothing.
The text was updated successfully, but these errors were encountered:
when is the increase/decrease happening? I would love to know more. As I can see, it updates a particular asset Id balance of a contract. It looks like a function, so I think it should be called when it's needed. So how is it calling even if we have no updates? Do you mean that if it's 0, we are still attempting an increase/decrease?
The current code always increases and decreases the balance even if we have no updates. It means storage read and write and spends a lot of resources for nothing.
The text was updated successfully, but these errors were encountered: