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(twap): avoid sending env as undefined to getOrder query #2864

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

alfetopito
Copy link
Collaborator

Summary

Avoid sending env as undefined to getOrder query
Without this, instead of the default behaviour, the SDK defaults to barn endpoint

To Test

  1. Load the app
  2. Observe network requests
  • Since this is a PR env, there should be no /orders/ requests to api.cow.fi endpoint
  • Once deployed to staging, there should be no /orders/ requests to barn.api.cow.fi endpoint

Without this, instead of the default behaviour, the SDK defaults to `barn` endpoint
@vercel
Copy link

vercel bot commented Jul 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
swap-dev 🔄 Building (Inspect) Jul 12, 2023 1:43pm

@alfetopito alfetopito self-assigned this Jul 12, 2023
@alfetopito alfetopito added the RELEASE Included in the release that is being closed label Jul 12, 2023
@alfetopito alfetopito requested review from a team July 12, 2023 13:43
: undefined),
}

return orderBookApi.getOrder(orderId, contextOverride)
Copy link
Collaborator Author

@alfetopito alfetopito Jul 12, 2023

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

We should fix in the SDK too, should default to prod

: undefined),
}

return orderBookApi.getOrder(orderId, contextOverride)
Copy link
Contributor

Choose a reason for hiding this comment

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

We should fix in the SDK too, should default to prod

@anxolin anxolin merged commit 3db9e05 into release/1.41.0 Jul 12, 2023
6 of 7 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 12, 2023
@anxolin
Copy link
Contributor

anxolin commented Jul 12, 2023

merging, just to consolidate all these pending PRs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
RELEASE Included in the release that is being closed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants