Skip to content

Conversation

jaybuidl
Copy link
Member

@jaybuidl jaybuidl commented Jan 22, 2024

All the deployment related env vars have been moved to a json file in src/assets/deployments/[network name].json.

The other env vars are handled by the Netlify console, most of them are RPC-related.


PR-Codex overview

This PR updates contract addresses and deployment information, improves fallback URL handling, and refactors network configuration for better readability.

Detailed summary

  • Updated contract addresses and deployment information
  • Improved fallback URL handling for different networks
  • Refactored network configuration for better readability

The following files were skipped due to too many changes: src/api/side-chain/create-side-chain-api.js, src/bootstrap/use-notifications.js, src/helpers/deployments.js, netlify.toml, src/bootstrap/drizzle.js

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@netlify
Copy link

netlify bot commented Jan 22, 2024

Deploy Preview for kleros-court ready!

Name Link
🔨 Latest commit 77331d1
🔍 Latest deploy log https://app.netlify.com/sites/kleros-court/deploys/65de7bce1e4c0b0009b4af5d
😎 Deploy Preview https://deploy-preview-399--kleros-court.netlify.app/
📱 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
Contributor

@kemuru kemuru left a comment

Choose a reason for hiding this comment

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

simulating this address, this is what im seeing on the current deploy (court.kleros.io):

image

and this is what im seeing on your preview:

image

also seeing these errors in console in your preview (which im not seeing in (court.kleros.io):

image

Comment on lines +7 to +8
"uniswapV2Router02Address": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"uniswapV2FactoryAddress": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",
Copy link
Contributor

Choose a reason for hiding this comment

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

These addresses are from the old .env but are not present on netlify.toml 🤔
.env

REACT_APP_UNISWAP_V2_ROUTER_02_ADDRESS=0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
REACT_APP_UNISWAP_V2_FACTORY_ADDRESS=0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f

netlify.toml

REACT_APP_UNISWAP_EXCHANGE_ADDRESS='0xF506828B166de88cA2EDb2A98D960aBba0D2402A'

@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed

Issues
1 New issue

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

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.

4 participants