From 966e9151b4e060485479cb0c32375e6733671e6b Mon Sep 17 00:00:00 2001 From: 0xfu Date: Fri, 1 Nov 2024 13:41:36 +0800 Subject: [PATCH] fix: correct comments(#759) (#820) --- 54_CrossChainBridge/crosschain.js | 8 ++++---- 54_CrossChainBridge/readme.md | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/54_CrossChainBridge/crosschain.js b/54_CrossChainBridge/crosschain.js index b11e9e429..bc1854cf5 100644 --- a/54_CrossChainBridge/crosschain.js +++ b/54_CrossChainBridge/crosschain.js @@ -32,18 +32,18 @@ const main = async () => { contractSepolia.on("Bridge", async (user, amount) => { console.log(`Bridge event on Chain Sepolia: User ${user} burned ${amount} tokens`); - // 在执行burn操作 + // 在Goerli上执行mint操作 let tx = await contractGoerli.mint(user, amount); await tx.wait(); console.log(`Minted ${amount} tokens to ${user} on Chain Goerli`); }); - // 监听chain Sepolia的Bridge事件,然后在Goerli上执行mint操作,完成跨链 + // 监听chain Goerli的Bridge事件,然后在Sepolia上执行mint操作,完成跨链 contractGoerli.on("Bridge", async (user, amount) => { console.log(`Bridge event on Chain Goerli: User ${user} burned ${amount} tokens`); - // 在执行burn操作 + // 在Sepolia上执行mint操作 let tx = await contractSepolia.mint(user, amount); await tx.wait(); @@ -56,4 +56,4 @@ const main = async () => { } } -main(); \ No newline at end of file +main(); diff --git a/54_CrossChainBridge/readme.md b/54_CrossChainBridge/readme.md index c3ded8fd9..9d40e6270 100644 --- a/54_CrossChainBridge/readme.md +++ b/54_CrossChainBridge/readme.md @@ -147,7 +147,7 @@ const main = async () => { contractSepolia.on("Bridge", async (user, amount) => { console.log(`Bridge event on Chain Sepolia: User ${user} burned ${amount} tokens`); - // 在执行burn操作 + // 在Goerli上执行mint操作 let tx = await contractGoerli.mint(user, amount); await tx.wait(); @@ -158,7 +158,7 @@ const main = async () => { contractGoerli.on("Bridge", async (user, amount) => { console.log(`Bridge event on Chain Goerli: User ${user} burned ${amount} tokens`); - // 在执行burn操作 + // 在Sepolia上执行mint操作 let tx = await contractSepolia.mint(user, amount); await tx.wait();