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

Refactor accounts #331

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Refactor accounts #331

wants to merge 3 commits into from

Conversation

marcvelmer
Copy link
Collaborator

No description provided.

Copy link

github-actions bot commented Jan 8, 2024

size-limit report 📦

Path Size
dist/index.js 1.54 MB (+0.01% 🔺)
dist/index.mjs 1.54 MB (-0.01% 🔽)
dist/index.umd.js 1.55 MB (+0.01% 🔺)

Copy link
Member

@elboletaire elboletaire left a comment

Choose a reason for hiding this comment

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

Just a minor type change suggestion/fix. Other than that, this refactor makes total sense, and the code looks good. Also done some tests updating ui-components from my side, and all looking good there too: vocdoni/ui-components#144 (actions are not passing due to the fileutil issue, for which I may open an issue sooner or later)

promAccountData: Promise<{ tx: Uint8Array; metadata: string; message: string }>
): Promise<AccountData> {
const accountTx = promAccountData.then((setAccountInfoTx) =>
promAccount: Promise<{ tx: Uint8Array; metadata: string; message: string }>
Copy link
Member

@elboletaire elboletaire Feb 13, 2024

Choose a reason for hiding this comment

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

Can this be defined as a type and exported? Actually, the docblock doesn't seem to match with this definition (docblock does not define message: string).

edit: didn't realize it's a private function, so there's no need to export it

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