Skip to content

Commit

Permalink
chore: fix statement in upgrade and reame
Browse files Browse the repository at this point in the history
  • Loading branch information
OnahProsperity committed Jul 4, 2024
1 parent 86bec77 commit 282d55c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ tronbox migrate -f 1 --to 1 --network <network>
```bash
npx hardhat run scripts/upgrade.ts --network <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
Expand Down
3 changes: 1 addition & 2 deletions scripts/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 282d55c

Please sign in to comment.