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

chore: update sdk to 14, improve types #144

Merged
merged 9 commits into from
Oct 30, 2024
Merged

chore: update sdk to 14, improve types #144

merged 9 commits into from
Oct 30, 2024

Conversation

davidyuk
Copy link
Member

This PR is supported by the Æternity Foundation

@davidyuk davidyuk force-pushed the update-sdk branch 2 times, most recently from 166e23d to 54bf693 Compare October 19, 2024 07:58
Copy link
Collaborator

@thepiwo thepiwo left a comment

Choose a reason for hiding this comment

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

looks good, thank you!

onDisconnect: () => alert("Aepp is disconnected"),
async function setupWalletConnector() {
status.value = Status.WALLET_SCANNING;
disconnectWallet();
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe add await or void for this async function call

Copy link
Member Author

Choose a reason for hiding this comment

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

It is a mistake, there is no disconnect confirmation on the wallet side, so disconnectWallet runs in sync. I'm removing async from its definition.

}
}

updateConnectionInfo();
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe add await or void for this async function call

) {
status.value = Status.UNINITIALIZED;
if (customNodeUrl) nodeUrl.value = customNodeUrl;
else nodeUrl.value = nodes[0].instance.$host;
disconnectWallet();
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe add await or void for this async function call

Copy link
Member Author

Choose a reason for hiding this comment

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

It is called in defineStore which can't be async, I'll add void. I think it is fine since exceptions are handled inside updateConnectionInfo.

@davidyuk davidyuk merged commit e3ad1b4 into master Oct 30, 2024
3 checks passed
@davidyuk davidyuk deleted the update-sdk branch October 30, 2024 04: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