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

Feature/config #396

Merged
merged 7 commits into from
Oct 8, 2024
Merged

Feature/config #396

merged 7 commits into from
Oct 8, 2024

Conversation

ygrishajev
Copy link
Contributor

@ygrishajev ygrishajev commented Oct 3, 2024

PR commits are describing what's done. It's also a step-by-step guide to apply to provider-web

const {
params: { address, dseq },
searchParams: { network }
} = DeploymentDetailPageSchema.parse(props);
Copy link
Contributor

Choose a reason for hiding this comment

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

This will throw an error if the props are not correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea

Copy link
Contributor

Choose a reason for hiding this comment

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

I think network id should have a default value of mainnet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so let's imagine someone implements a link to this page on the frontend. The one may notice that it works without the network params and not bother why it's needed. Thus we may get a bug when a mainnet link is opened from, say, staging.
I'd say it should fail in dev.

Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose yea, we do append the network param to the path everywhere is use it so it should be fine.

@ygrishajev ygrishajev merged commit 3f96263 into main Oct 8, 2024
5 checks passed
@ygrishajev ygrishajev deleted the feature/config branch October 8, 2024 07:44
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