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

ts-sdk: Add getTransactionAuthSigners json rpc #6616

Merged
merged 1 commit into from
Dec 7, 2022
Merged

Conversation

joyqvq
Copy link
Contributor

@joyqvq joyqvq commented Dec 6, 2022

No description provided.

@vercel
Copy link

vercel bot commented Dec 6, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
explorer ✅ Ready (Inspect) Visit Preview Dec 6, 2022 at 7:46PM (UTC)

@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2022

💳 Wallet Extension has been built, you can download the packaged extension here: https://github.com/MystenLabs/sui/actions/runs/3632917093#artifacts

@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2022

💳 Wallet Extension has been built, you can download the packaged extension here: https://github.com/MystenLabs/sui/actions/runs/3633259228#artifacts

);
const digest = resp.data[0];
const version = await toolbox.provider.getRpcApiVersion();
if (version?.major === 0 && version?.minor > 17) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I would put this check before fetching the transaction

if (version?.major === 0 && version?.minor > 17) {
// This endpoint is only available in 0.18 and above
const res = await toolbox.provider.getTransactionAuthSigners(digest);
expect(res.signers.length).toEqual(3);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change this to greater or equal to 3 so that it also work for TestNet?

@github-actions
Copy link
Contributor

github-actions bot commented Dec 7, 2022

💳 Wallet Extension has been built, you can download the packaged extension here: https://github.com/MystenLabs/sui/actions/runs/3642553727#artifacts

@joyqvq joyqvq merged commit b03bfae into main Dec 7, 2022
@joyqvq joyqvq deleted the get-auth-signers branch December 7, 2022 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants