-
Notifications
You must be signed in to change notification settings - Fork 140
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
Add Multisig #433
base: master
Are you sure you want to change the base?
Add Multisig #433
Conversation
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.
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.
LGTM, thanks.
packages/core-cairo/src/multisig.ts
Outdated
} | ||
|
||
export interface MultisigOptions extends CommonOptions { | ||
name: 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.
The name
is configurable from the API but not from the UI. Would there be any benefit to allow customizing the name in the UI?
(I realize this is also the case for VestingWallet)
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.
LGTM! I left a small comment
packages/core-cairo/src/multisig.ts
Outdated
|
||
export const numberPattern = /^(?!$)(\d*)(?:\.(\d+))?(?:e(\d+))?$/; |
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.
Small thing: we could move this to somewhere in utils/
to avoid repetition since we're also using it in governor
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.
This regex looks like it should support decimals and e
notation, although those give an error in the UI. I'm not sure why that is the case.
Regardless, perhaps the regex should be updated to only look for natural numbers.
No description provided.