Skip to content

Commit

Permalink
chore: zkevm nodereal (#7449)
Browse files Browse the repository at this point in the history
<!--
Before opening a pull request, please read the [contributing
guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md)
first
-->

<!--
copilot:all
-->
### <samp>🤖 Generated by Copilot at 01784a1</samp>

### Summary
🚀🔗🧩

<!--
1. 🚀 - This emoji represents the improvement in performance and
reliability that the Polygon ZK-EVM network provides, as well as the
innovation and excitement of using a new layer 2 solution. It also
conveys a sense of speed and scalability, which are desirable features
for a decentralized exchange platform.
2. 🔗 - This emoji represents the connection to the Polygon ZK-EVM
network, as well as the support for multiple blockchains and layer 2
solutions. It also conveys a sense of interoperability and
compatibility, which are important aspects of a decentralized exchange
platform.
3. 🧩 - This emoji represents the use of the `getNodeRealUrlV2` function,
which is a piece of logic that enables the web app to work with the
Polygon ZK-EVM network. It also conveys a sense of complexity and
puzzle-solving, which are involved in developing and integrating a new
layer 2 solution.
-->
Uncommented code in `nodes.ts` to enable the use of `getNodeRealUrlV2`
function. This function connects to the Polygon ZK-EVM network, a new
layer 2 solution for scaling Ethereum.

> _`getNodeRealUrlV2`_
> _Connects to Polygon ZK-EVM_
> _Faster web app - spring_

### Walkthrough
* Enable the use of `getNodeRealUrlV2` function to connect to Polygon
ZK-EVM network
([link](https://github.com/pancakeswap/pancake-frontend/pull/7449/files?diff=unified&w=0#diff-17218d64565ce12e09953351575126053d6b30541c3605f7ee38a34374a7daecL62-R62))
  • Loading branch information
0xjojoex authored Jul 29, 2023
1 parent f7bda7b commit 0ef2024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/config/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const PUBLIC_NODES = {
[ChainId.ARBITRUM_ONE]: arbitrum.rpcUrls.public.http,
[ChainId.ARBITRUM_GOERLI]: arbitrumGoerli.rpcUrls.public.http,
[ChainId.POLYGON_ZKEVM]: [
// getNodeRealUrlV2(ChainId.POLYGON_ZKEVM, process.env.NEXT_PUBLIC_NODE_REAL_API_ETH),
getNodeRealUrlV2(ChainId.POLYGON_ZKEVM, process.env.NEXT_PUBLIC_NODE_REAL_API_ETH),
...POLYGON_ZKEVM_NODES,
],
[ChainId.POLYGON_ZKEVM_TESTNET]: [
Expand Down

1 comment on commit 0ef2024

@vercel
Copy link

@vercel vercel bot commented on 0ef2024 Jul 29, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.