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 #8488, SmartWallet was refactored to use promiseWatcher to ensure that promises survived various kinds of upgrade trauma.
That refactoring left some error handling in a catch clause in executeOffer, missing the fact that that error handling would be lost when the walletFactory itself is upgraded.
Ensure that wallets correctly report on exceptions.
Scaling Considerations
Not much relevance.
Test Plan
It may be difficult to provoke the error conditions (multiple upgrades, and exceptions at carefully calibrated times would be required). We aren't going to try to write tests for these corner cases, and will instead review carefully.
Upgrade Considerations
This is about error behavior in upgrade situations. With the refactor, we expect the error handling to be invoked correctly even if there are vat upgrades.
The text was updated successfully, but these errors were encountered:
What is the Problem Being Solved?
In #8488, SmartWallet was refactored to use promiseWatcher to ensure that promises survived various kinds of upgrade trauma.
That refactoring left some error handling in a catch clause in
executeOffer
, missing the fact that that error handling would be lost when the walletFactory itself is upgraded.Description of the Design
Move the contents of the catch clause in
executOffer
to appropriate sections ofofferWatcher.js
.Security Considerations
Ensure that wallets correctly report on exceptions.
Scaling Considerations
Not much relevance.
Test Plan
It may be difficult to provoke the error conditions (multiple upgrades, and exceptions at carefully calibrated times would be required). We aren't going to try to write tests for these corner cases, and will instead review carefully.
Upgrade Considerations
This is about error behavior in upgrade situations. With the refactor, we expect the error handling to be invoked correctly even if there are vat upgrades.
The text was updated successfully, but these errors were encountered: