-
Couldn't load subscription status.
- Fork 3
Crowdloan pallet tests #189
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
base: main
Are you sure you want to change the base?
Conversation
| const num_active_leases = leasesArray.filter( | ||
| (lease: any) => | ||
| lease && | ||
| typeof lease === "object" && | ||
| "isSome" in lease && | ||
| lease.isSome | ||
| ).length; |
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.
it smells bad for me, even though I am not a TS expert. You should keep the types to be able to use isSome
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.
You are right, with types, the defensive checks will not be required.
1a8d9b6 to
056770c
Compare
Crowdloan Pallet migration tests
This will close issue #153
WIP- need to fetch the contributors data from child state.