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

Nikos/5430/validator unit test coverage #5525

Merged
merged 10 commits into from
Oct 21, 2022

Conversation

nikoulai
Copy link
Contributor

Description

#5430 validator unit tests coverage (78% -> 91.52%)

Checklist for 4.x:

  • I have selected the correct 4.x base branch.
  • Within the description, the feature or issue is discussed in detail or an issue is linked.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas.
  • I have added any required tests for the changes I made
  • I have made corresponding changes to the documentation
  • Any dependent changes have been merged and published in downstream modules.
  • I ran yarn successfully
  • I ran yarn lint successfully
  • I ran yarn build:web successfully
  • I ran yarn test:unit successfully
  • I ran yarn test:integration successfully
  • I ran compile:contracts successfully
  • I have tested my code.
  • I have updated the corresponding CHANGELOG.md file in the packages I have edited.

@nikoulai nikoulai self-assigned this Oct 12, 2022
@nikoulai nikoulai added the 4.x 4.0 related label Oct 12, 2022
@nikoulai
Copy link
Contributor Author

I've added some todo comments, please give your opinion, and I'll remove them before merging.

@@ -218,6 +218,7 @@ export const transformJsonDataToAbiFormat = (
abiName = abi.name;
abiComponents = abi.components as FullValidationSchema;
// If its short form string value e.g. ['uint']
// todo abis is FullValidationSchema aka ReadOnlyArray<AbiParameter>, thus abi cannot be something else, so may next two ifs are reduntant
Copy link
Contributor

@jdevcs jdevcs Oct 17, 2022

Choose a reason for hiding this comment

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

Next two if are checking internal members of abis that is not complete abi type, and also not abis param it self.

@nikoulai nikoulai merged commit bfce27f into 4.x Oct 21, 2022
@nikoulai nikoulai deleted the nikos/5430/validator-unit-test-coverage branch October 21, 2022 13:39
@jdevcs jdevcs mentioned this pull request Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x 4.0 related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants