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

smartWallet exits offers (e.g. bids) on zoe upgrade #8292

Closed
3 of 5 tasks
dckc opened this issue Aug 31, 2023 · 4 comments
Closed
3 of 5 tasks

smartWallet exits offers (e.g. bids) on zoe upgrade #8292

dckc opened this issue Aug 31, 2023 · 4 comments
Assignees
Labels
bug Something isn't working contract-upgrade wallet

Comments

@dckc
Copy link
Member

dckc commented Aug 31, 2023

Describe the bug

from the #8245 investigation with @warner:

when v9-zoe is upgraded, the wallet's executeOffer() code will observe the E(seatRef).numWantsSatisfied() promise get rejected/disconnected, which will reject the tryBody() promise, which will trigger the payment-recovery sequence and an E(seatRef).tryExit(), even though zoe's objects are still valid. Consequence: the offer is abandoned and refunded when that wasn't really necessary.

Design / Plan

To Reproduce

Steps to reproduce the behavior:

  1. place a bid
  2. upgrade zoe
  3. bid unexpectedly exits

Expected behavior

Long-lived offers should survive upgrade of zoe.

Platform Environment

mainnet1B

@dckc
Copy link
Member Author

dckc commented Dec 4, 2023

Since #8293 was complicated by related work in progress, I got started on this on Friday, capturing the bug in a test:

2023-12-01 17:52 8eb9cce WIP: test.failing('offer lasts across zoe upgrade',

I added a checklist to the description:

@dckc
Copy link
Member Author

dckc commented Jan 8, 2024

I think recent work by @Chris-Hibbert addresses this.

@dckc dckc assigned Chris-Hibbert and unassigned dckc Jan 8, 2024
@Chris-Hibbert
Copy link
Contributor

#8445 fixes the issue. It's not yet on the release branch.

@aj-agoric
Copy link

Moving to done as @Chris-Hibbert mentioned this was in the release branch and sufficiently tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working contract-upgrade wallet
Projects
None yet
Development

No branches or pull requests

3 participants