Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
perekopskiy committed Jan 11, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent a619bcf commit 8947c0d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/tests/upgrade-test/tests/upgrade.test.ts
Original file line number Diff line number Diff line change
@@ -153,16 +153,14 @@ describe('Upgrade test', function () {
config: 'wallets.yaml'
});

// Note, that the following check is needed to avoid flackiness. In case the
// Note, that the following check is needed to reduce flackiness. In case the
// `ecosystemGovWallet` and `slAdminGovWallet` refer to the same account, then
// sending transactions from the same account while using different `Wallet` objects
// could lead to flacky issues.
if (chainWalletConfig.governor.private_key == ecosystemWalletConfig.governor.private_key) {
if (chainWalletConfig.governor.private_key == ecosystemWalletConfig.governor.private_key && !gatewayInfo) {
ecosystemGovWallet = slAdminGovWallet;
} else {
ecosystemGovWallet = gatewayInfo
? new zksync.Wallet(ecosystemWalletConfig.governor.private_key, gatewayInfo.gatewayProvider)
: new ethers.Wallet(ecosystemWalletConfig.governor.private_key, alice._providerL1());
ecosystemGovWallet = new ethers.Wallet(ecosystemWalletConfig.governor.private_key, alice._providerL1());
}

upgradeAddress = await deployDefaultUpgradeImpl(slAdminGovWallet);

0 comments on commit 8947c0d

Please sign in to comment.