-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
Delete async when new wallet context in sui sdk #16459
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@ccbond thanks for taking a stab at this. Now that |
@wlmyng i use global find all functions used |
@ccbond thanks for cleaning up some of the issues! It should be mostly clerical work at this point - do you mind taking a look at the errors from ci and cleaning those up as well? |
of course. @wlmyng thanks for your review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe there's still a few spots to clean up. Would you also be able to pull from main to pick up the pnpm audit
fix?
All the previous tests passed, so I pull rebase the latest code but its needed to approve the tests again. @wlmyng |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wanted to call out a slight change
@wlmyng Is there anything else I can change? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good - let's ship this
## Description Fix MystenLabs#16458 ## Test Plan --- If your changes are not user-facing and do not break anything, you can skip the following section. Otherwise, please briefly describe what has changed under the Release Notes section. ### Type of Change (Check all that apply) - [ ] protocol change - [ ] user-visible impact - [x] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes The `WalletContext::new` method does not have any asynchronous dependencies, and thus it does not need to be defined as an asynchronous function. This PR is a breaking change that modifies the signature of `WalletContext::new` into a synchronous function. Users that depend on `WalletContext::new` will need to update callsites accordingly by dropping the `.await`. --------- Co-authored-by: Hgamiui9 <jinlong@cplus.zone>
Description
Fix #16458
Test Plan
If your changes are not user-facing and do not break anything, you can skip the following section. Otherwise, please briefly describe what has changed under the Release Notes section.
Type of Change (Check all that apply)
Release notes
The
WalletContext::new
method does not have any asynchronous dependencies, and thus, it does not need to be defined as an asynchronous function. This PR is a breaking change that modifies the signature ofWalletContext::new
into a synchronous function. Users that depend onWalletContext::new
need to update callsites accordingly by dropping the.await
.