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

fix: handle nullable SafeInfo['version'] #1340

Merged
merged 5 commits into from
Dec 13, 2022
Merged

fix: handle nullable SafeInfo['version'] #1340

merged 5 commits into from
Dec 13, 2022

Conversation

iamacook
Copy link
Member

@iamacook iamacook commented Dec 9, 2022

NOTE: This cannot be merged until safe-global/safe-gateway-typescript-sdk#108 is merged/released and a new lock is generated.

What it solves

Resolves #1327

How this PR fixes it

The nullable SafeInfo['version'] for unsupported base contracts is now handled.

How to test it

Open matic:0xF3aa45696f8Bc702D41d11b365C067f26f79fcaA and open the module settings. Observe no error/app crash.

@iamacook iamacook requested a review from katspaugh December 9, 2022 11:33
@github-actions
Copy link

github-actions bot commented Dec 9, 2022

Branch preview

✅ Deploy successful!

https://invalidsafeversion--webcore.review-web-core.5afe.dev

@github-actions
Copy link

github-actions bot commented Dec 9, 2022

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

@katspaugh
Copy link
Member

Could you also add "unsupported contract" here instead of an empty version?

Screenshot 2022-12-09 at 15 38 59

@katspaugh
Copy link
Member

Looks good, the link is empty tho (no href).

Screenshot 2022-12-09 at 17 37 11

@iamacook
Copy link
Member Author

Looks good, the link is empty tho (no href).

I've recitified this.

image

@iamacook iamacook merged commit a7f8712 into dev Dec 13, 2022
@iamacook iamacook deleted the invalid-safe-version branch December 13, 2022 12:01
@github-actions github-actions bot locked and limited conversation to collaborators Dec 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

App crashes on the Settings->Modules page for Safes with the wrong mastercopy
2 participants