Skip to content

Commit

Permalink
fix: correct comments(#759) (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
smallfu6 authored Nov 1, 2024
1 parent ef95cdd commit 966e915
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions 54_CrossChainBridge/crosschain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -56,4 +56,4 @@ const main = async () => {
}
}

main();
main();
4 changes: 2 additions & 2 deletions 54_CrossChainBridge/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand Down

0 comments on commit 966e915

Please sign in to comment.