-
Notifications
You must be signed in to change notification settings - Fork 14
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
docs: updates for how-to tutorials #20
Conversation
Visit the preview URL for this PR (updated for commit 2c512f5): https://community-cookbook-staging--pr20-qa-fix-how-to-tutori-l5mwr1lj.web.app (expires Mon, 10 Jun 2024 08:41:23 GMT) π₯ via Firebase Hosting GitHub Action π Sign: 1b876338aafcf55b4a02f1877984e116731756b1 |
@@ -98,7 +98,7 @@ async function main() { | |||
console.log(`Running script to bridge ERC-20 to L1`); | |||
|
|||
// Initialize the wallet. | |||
const l1provider = new ethers.Provider(L1_RPC_ENDPOINT); | |||
const l1provider = new Provider(L1_RPC_ENDPOINT); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const l1provider = new Provider(L1_RPC_ENDPOINT); | |
const l1provider = new ethers.JsonRpcProvider(L1_RPC_ENDPOINT); |
This should be a provider from ethers, not zksync-ethers. Please try this suggestion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the latest commit
@@ -76,7 +76,7 @@ dotenv.config(); | |||
|
|||
// HTTP RPC endpoints | |||
const L1_RPC_ENDPOINT = process.env.L1_RPC_ENDPOINT || ""; // or an RPC endpoint from Infura/Chainstack/QuickNode/etc. | |||
const L2_RPC_ENDPOINT = process.env.L2_RPC_ENDPOINT || "https://testnet.era.zksync.dev"; // or the zkSync Era mainnet | |||
const L2_RPC_ENDPOINT = process.env.L2_RPC_ENDPOINT || "https://sepolia.era.zksync.dev"; // or the zkSync Era mainnet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here - %%zk_testnet_rpc_url%%
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the latest commit
@@ -72,7 +72,7 @@ dotenv.config(); | |||
|
|||
// HTTP RPC endpoints | |||
const L1_RPC_ENDPOINT = process.env.L1_RPC_ENDPOINT || ""; // or an RPC endpoint from Infura/Chainstack/QuickNode/etc. | |||
const L2_RPC_ENDPOINT = process.env.L2_RPC_ENDPOINT || "https://testnet.era.zksync.dev"; // or the zkSync Era mainnet | |||
const L2_RPC_ENDPOINT = process.env.L2_RPC_ENDPOINT || "https://sepolia.era.zksync.dev"; // or the zkSync Era mainnet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%%zk_testnet_rpc_url%%
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the latest commit
@@ -72,7 +72,7 @@ dotenv.config(); | |||
|
|||
// HTTP RPC endpoints | |||
const L1_RPC_ENDPOINT = process.env.L1_RPC_ENDPOINT || ""; // or an RPC endpoint from Infura/Chainstack/QuickNode/etc. | |||
const L2_RPC_ENDPOINT = process.env.L2_RPC_ENDPOINT || "https://testnet.era.zksync.dev"; // or the zkSync Era mainnet | |||
const L2_RPC_ENDPOINT = process.env.L2_RPC_ENDPOINT || "https://sepolia.era.zksync.dev"; // or the zkSync Era mainnet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%%zk_testnet_rpc_url%%
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the latest commit
Fixing comments
@uF4No @itsacoyote requested fixes added - could you please review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π«‘
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π
What π»
Why β
Evidence π·
Include screenshots, screen recordings, or
console
output here demonstrating that your changes work as intended