diff --git a/README.md b/README.md index f5a8c78..bb35fde 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ tronbox migrate -f 1 --to 1 --network ```bash npx hardhat run scripts/upgrade.ts --network -# upgrade accorss all EVM chains +# upgrade across all EVM chains npx hardhat run scripts/upgrade.ts --network arbitrumOne && npx hardhat run scripts/upgrade.ts --network base && npx hardhat run scripts/upgrade.ts --network diff --git a/scripts/upgrade.ts b/scripts/upgrade.ts index 8ae6b3d..2022dbd 100644 --- a/scripts/upgrade.ts +++ b/scripts/upgrade.ts @@ -8,9 +8,8 @@ async function main() { const [signer] = await ethers.getSigners(); // Get the signer (the account performing the upgrade) const balance = await signer.getBalance(); // Get the balance of the signer's address - // Check if the balance is exactly 1 ETH if (balance.eq(0)) { - throw new Error("Balance is exactly 1 ETH. Upgrade aborted."); + throw new Error(`"Can't upgrade ${network.config.chainId} with 0 balance`); } const proxyContractAddress = networkConfig.GATEWAY_CONTRACT;