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: zrx base URLs #5955

Merged
merged 2 commits into from
Jan 8, 2024
Merged

fix: zrx base URLs #5955

merged 2 commits into from
Jan 8, 2024

Conversation

gomesalexandre
Copy link
Contributor

@gomesalexandre gomesalexandre commented Jan 8, 2024

Description

Forward slashes rugged.

Pull Request Type

  • πŸ› Bug fix (Non-breaking Change: Fixes an issue)
  • πŸ› οΈ Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
  • πŸ’… New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

Risk

  • If this works on localhost and gome, none

Testing

  • ZRX calls are happy both locally and on gome

Engineering

  • ☝🏽

Operations

Screenshots (if applicable)

ZRX is happy on Localhost

image

ZRX is happy on deploys

image

Copy link
Contributor Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@gomesalexandre gomesalexandre marked this pull request as ready for review January 8, 2024 10:32
@gomesalexandre gomesalexandre requested a review from a team as a code owner January 8, 2024 10:32
Copy link
Contributor

@kaladinlight kaladinlight left a comment

Choose a reason for hiding this comment

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

derp... thanks!

@gomesalexandre gomesalexandre enabled auto-merge (squash) January 8, 2024 15:38
@gomesalexandre gomesalexandre merged commit 8298f8f into develop Jan 8, 2024
4 checks passed
@gomesalexandre gomesalexandre deleted the fix_zrx_base_url_remote_envs branch January 8, 2024 15:39
Comment on lines -20 to -30
return 'https:/0x.shapeshift.com/ethereum'
return 'https://0x.shapeshift.com/ethereum/'
case KnownChainIds.AvalancheMainnet:
return 'https:/0x.shapeshift.com/avalanche'
return 'https://0x.shapeshift.com/avalanche/'
case KnownChainIds.OptimismMainnet:
return 'https:/0x.shapeshift.com/optimism'
return 'https://0x.shapeshift.com/optimism/'
case KnownChainIds.BnbSmartChainMainnet:
return 'https:/0x.shapeshift.com/bnbsmartchain'
return 'https://0x.shapeshift.com/bnbsmartchain/'
case KnownChainIds.PolygonMainnet:
return 'https:/0x.shapeshift.com/polygon'
return 'https://0x.shapeshift.com/polygon/'
case KnownChainIds.ArbitrumMainnet:
return 'https:/0x.shapeshift.com/arbitrum'
Copy link
Member

Choose a reason for hiding this comment

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

Oh man, I stared at this code for so long but didn't notice the single forward slash - good find @gomesalexandre!

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.

3 participants