Closed alcercu closed 1 month ago
The recent change to the QUERY_CHAINS
object in chains.ts
introduces conditional logic to select either gnosis
or gnosisChiado
chains based on whether the deployment environment is production. This adjustment ensures the application uses the appropriate chain settings dynamically, thus improving environment-specific configurations.
Files | Change Summary |
---|---|
web/src/consts/chains.ts |
Modified QUERY_CHAINS to conditionally select gnosis or gnosisChiado based on the result of isProductionDeployment() . |
In the code where chains do dwell,
Conditional logic now must tell,
If production be the place it stays,
To choose the chain that best displays.
With gnosis strong or Chiado light,
The correct path now in sight.
🌐✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | 1b113dcc2826736cbb1d997019596c5868dd5815 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2/deploys/6687fc4afc4a0d0008348dee |
Deploy Preview | https://deploy-preview-1646--kleros-v2.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 1b113dcc2826736cbb1d997019596c5868dd5815 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-university/deploys/6687fc4a7193d900087f65fd |
Deploy Preview | https://deploy-preview-1646--kleros-v2-university.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 1b113dcc2826736cbb1d997019596c5868dd5815 |
Latest deploy log | https://app.netlify.com/sites/kleros-v2-neo/deploys/6687fc4ac9d7950008516809 |
Deploy Preview | https://deploy-preview-1646--kleros-v2-neo.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Code Climate has analyzed commit 1b113dcc and detected 0 issues on this pull request.
View more on Code Climate.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
PR-Codex overview
This PR updates the
QUERY_CHAINS
constant inchains.ts
to dynamically select the chain based on the production deployment status.Detailed summary
QUERY_CHAINS
constant inchains.ts
.Summary by CodeRabbit
gnosis
andgnosisChiado
based on the deployment environment.