From 4625fbe54f85d43b9d1543de5655a3b4b01f7649 Mon Sep 17 00:00:00 2001 From: zhoufanjin Date: Sat, 27 Jul 2024 19:22:30 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: zhoufanjin --- packages/address-table/contracts/ArbitrumVIP.sol | 2 +- packages/address-table/scripts/exec.js | 2 +- packages/delayedInbox-l2msg/scripts/withdrawFunds.js | 2 +- packages/token-withdraw/scripts/exec.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/address-table/contracts/ArbitrumVIP.sol b/packages/address-table/contracts/ArbitrumVIP.sol index 7d74714..204829b 100644 --- a/packages/address-table/contracts/ArbitrumVIP.sol +++ b/packages/address-table/contracts/ArbitrumVIP.sol @@ -16,7 +16,7 @@ contract ArbitrumVIP { } function addVIPPoints(uint256 addressIndex) external { - // retreive address from address table + // retrieve address from address table address addressFromTable = arbAddressTable.lookupIndex(addressIndex); arbitrumVIPPoints[addressFromTable]++; diff --git a/packages/address-table/scripts/exec.js b/packages/address-table/scripts/exec.js index c9c4f75..2360ade 100644 --- a/packages/address-table/scripts/exec.js +++ b/packages/address-table/scripts/exec.js @@ -59,7 +59,7 @@ async function main() { const addressIndex = await arbAddressTable.lookup(myAddress) /** - * From here on out we can use this index instead of our address as a paramter into any contract with affordances to look up out address in the address data. + * From here on out we can use this index instead of our address as a parameter into any contract with affordances to look up out address in the address data. */ const txnRes = await arbitrumVIP.addVIPPoints(addressIndex) diff --git a/packages/delayedInbox-l2msg/scripts/withdrawFunds.js b/packages/delayedInbox-l2msg/scripts/withdrawFunds.js index 1e8e0cf..18773de 100644 --- a/packages/delayedInbox-l2msg/scripts/withdrawFunds.js +++ b/packages/delayedInbox-l2msg/scripts/withdrawFunds.js @@ -80,7 +80,7 @@ const main = async () => { const status = l2TxReceipt.status if (status == true) { console.log( - `L2 txn executed!!! 🥳 , you can go to https://bridge.arbitrum.io/ to execute your withdrawal and recieve your funds after challenge period!` + `L2 txn executed!!! 🥳 , you can go to https://bridge.arbitrum.io/ to execute your withdrawal and receive your funds after challenge period!` ) } else { console.log(`L2 txn failed, see if your gas is enough?`) diff --git a/packages/token-withdraw/scripts/exec.js b/packages/token-withdraw/scripts/exec.js index 8c09fb7..a43ba20 100644 --- a/packages/token-withdraw/scripts/exec.js +++ b/packages/token-withdraw/scripts/exec.js @@ -114,7 +114,7 @@ const main = async () => { const l2Result = await depositRec.waitForL2(l2Provider) console.log(`Setup complete`) /** - * The `complete` boolean tells us if the l1 to l2 message was successul + * The `complete` boolean tells us if the l1 to l2 message was successful */ l2Result.complete ? console.log(