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

feat: add vaultId to accounts #505

Merged
merged 2 commits into from
Sep 12, 2022
Merged

feat: add vaultId to accounts #505

merged 2 commits into from
Sep 12, 2022

Conversation

QuinnLee
Copy link
Contributor

@QuinnLee QuinnLee commented Sep 12, 2022

TLDR

Added vaultId on the accounts!

@github-actions
Copy link
Contributor

github-actions bot commented Sep 12, 2022

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 90.01% 3299/3665
🟡 Branches 70.66% 614/869
🟢 Functions 86.93% 665/765
🟢 Lines 89.85% 3161/3518

Test suite run success

503 tests passing in 44 suites.

Report generated by 🧪jest coverage report action from 6b3bff3

@QuinnLee QuinnLee linked an issue Sep 12, 2022 that may be closed by this pull request
Comment on lines 5 to +8
export type Account = {
address: AbstractAddress;
publicKey: string;
vaultId?: number;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if this is desired. Alternative is Array<Account & { vaultId?: number }> on getAccounts

Copy link
Member

Choose a reason for hiding this comment

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

I think is ok, as Account is already a high level type for the wallet manager

@QuinnLee QuinnLee enabled auto-merge (squash) September 12, 2022 15:05
@QuinnLee QuinnLee merged commit 1961cc4 into master Sep 12, 2022
@QuinnLee QuinnLee deleted the ql/474 branch September 12, 2022 15:13
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.

Add vaultId on wallet manager accounts
3 participants