-
Notifications
You must be signed in to change notification settings - Fork 6
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
base: main
Are you sure you want to change the base?
Refactor accounts #331
Conversation
size-limit report 📦
|
0962239
to
20261c2
Compare
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.
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 }> |
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.
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
No description provided.