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

Hotfix for missing bigNumberValue on ethValue while creating proposal from template #1528

Merged
merged 9 commits into from
Apr 11, 2024

Conversation

mudrila
Copy link
Contributor

@mudrila mudrila commented Apr 8, 2024

No description provided.

@mudrila mudrila added the bug Something isn't working label Apr 8, 2024
@mudrila mudrila self-assigned this Apr 8, 2024
Copy link

netlify bot commented Apr 8, 2024

Deploy Preview for fractal-prod ready!

Name Link
🔨 Latest commit e3ff66b
🔍 Latest deploy log https://app.netlify.com/sites/fractal-prod/deploys/66151c1b5fc6b7000960ac49
😎 Deploy Preview https://deploy-preview-1528.app.fractalframework.xyz
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@tomstuart123 tomstuart123 left a comment

Choose a reason for hiding this comment

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

Copy link
Member

@adamgall adamgall left a comment

Choose a reason for hiding this comment

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

Thanks for this PR Kirill. Does the bigNumberValue property spread amongst these changes still need to have the undefined type? Are there explicit uses for each of the three types (null, undefined, BN) this property takes?

Copy link
Contributor

@Da-Colon Da-Colon left a comment

Choose a reason for hiding this comment

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

Code changes make sense, looks good! +1 Adams question.

@mudrila
Copy link
Contributor Author

mudrila commented Apr 9, 2024

Thanks for this PR Kirill. Does the bigNumberValue property spread amongst these changes still need to have the undefined type? Are there explicit uses for each of the three types (null, undefined, BN) this property takes?

@adamgall
There's no explicit usage of undefined nor null type. I think we don't need to be marking with undefined explicitly - I adjusted it to mark that it is optional param via ? in applicable places.
Changes in this PR are covering all places where it is required. It could be that there are some other places where it is necessary - I've seen bunch of BigNumber | undefined but not quite sure we need null in those places.

@mudrila mudrila requested review from adamgall and Da-Colon April 9, 2024 12:02
@mudrila mudrila changed the base branch from main to develop April 9, 2024 15:44
Copy link
Contributor

@Da-Colon Da-Colon left a comment

Choose a reason for hiding this comment

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

That makes sense. I think We can take a look at the typing in other places in later SOL sessions/PRs

Copy link
Member

@adamgall adamgall left a comment

Choose a reason for hiding this comment

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

In retrospect, I don't know if I love this BigNumberInput value type being BigNumber | undefined | null, that seems kind of excessive.

I walk back what I said on Slack... maybe it would be cleaner to just treat a "missing" ethValue property in IPFS as meaning "variable ETH value".

Sorry for going back and forth on this. What's your preference?

@mudrila mudrila changed the base branch from develop to feature/#1363-generic-templates-builder April 11, 2024 13:17
@mudrila mudrila merged commit 50dfaaa into feature/#1363-generic-templates-builder Apr 11, 2024
3 checks passed
@mudrila mudrila deleted the hotfix/eth-value branch April 11, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants