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
In some versions of XS, the non-init updateBalance hits before the init one, causing an assert to fail when checking for the presence of the key in the collection.
In general while the purse is guaranteed to see the messages getCurrentAmount and getCurrentAmountNotifier in order, there is no guarantee those will be resolved in the same order. And even if they were, E.when and the observeNotifier may not make any guarantee about the number of turns or cranks that may occur.
Describe the bug
In some versions of XS, the non-init
updateBalance
hits before the init one, causing an assert to fail when checking for the presence of the key in the collection.In general while the purse is guaranteed to see the messages
getCurrentAmount
andgetCurrentAmountNotifier
in order, there is no guarantee those will be resolved in the same order. And even if they were, E.when and the observeNotifier may not make any guarantee about the number of turns or cranks that may occur.agoric-sdk/packages/smart-wallet/src/smartWallet.js
Lines 320 to 334 in c7d4223
To Reproduce
Not practical to reproduce. Just fix through code analysis.
Expected behavior
No assertion failure if promises resolve in another valid resolution order.
Platform Environment
XS
Additional context
#6689 (comment)
Screenshots
If applicable, add screenshots to help explain your problem, especially for UI interactions.
The text was updated successfully, but these errors were encountered: