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

Bug: Fix network type in safe info #73

Merged
merged 1 commit into from
Dec 18, 2020
Merged

Conversation

mmv08
Copy link
Member

@mmv08 mmv08 commented Dec 18, 2020

When updating safe-react-apps I stumbled upon a bug where the return value of the network was in uppercase but the type was in lowercase

https://github.com/gnosis/safe-react/blob/0ecd70fdbcd94952ce82acd00dbfbaaaa4ec1f74/src/config/index.ts#L18
https://github.com/gnosis/safe-react/blob/0ecd70fdbcd94952ce82acd00dbfbaaaa4ec1f74/src/config/networks/network.d.ts

This PR fixes that by changing the type from lowercase to uppercase (faster than updating the interface and there's no real need to return the lowercase one)

@mmv08 mmv08 requested a review from rmeissner December 18, 2020 13:42
@github-actions
Copy link
Contributor

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@mmv08 mmv08 merged commit f9dcaa8 into development Dec 18, 2020
@mmv08 mmv08 deleted the bug/network-type-safe-info branch December 18, 2020 13:55
@mmv08 mmv08 mentioned this pull request Dec 18, 2020
mmv08 added a commit that referenced this pull request May 13, 2021
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