Skip to content

Commit 5a6ce46

Browse files
committed
chore: reconsider life choices
1 parent ac77dea commit 5a6ce46

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

l1-contracts/src/mock/TestERC20.sol

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,8 @@ contract TestERC20 is ERC20, IMintableERC20, Ownable2Step {
3434
}
3535

3636
function acceptOwnership() public virtual override(Ownable2Step) {
37-
address oldOwner = owner();
3837
address newOwner = pendingOwner();
3938
super.acceptOwnership();
40-
41-
removeMinter(oldOwner);
4239
addMinter(newOwner);
4340
}
4441
}

l1-contracts/test/test_erc20/transferOwnership.t.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ contract TransferOwnershipTest is TestERC20TestBase {
6464

6565
assertEq(testERC20.owner(), _newOwner);
6666
assertEq(testERC20.minters(_newOwner), true);
67-
if (_newOwner != oldOwner) {
68-
assertEq(testERC20.minters(oldOwner), false);
69-
}
67+
assertEq(testERC20.minters(oldOwner), true);
7068
}
7169
}

yarn-project/end-to-end/src/e2e_epochs/epochs_multi_proof.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ describe('e2e_epochs/epochs_multi_proof', () => {
2020
let test: EpochsTestContext;
2121

2222
beforeEach(async () => {
23-
test = await EpochsTestContext.setup();
23+
// Use longer epochs, as deployments take up more than 4 slots.
24+
test = await EpochsTestContext.setup({ aztecEpochDuration: 8 });
2425
({ context, rollup, constants, logger, L1_BLOCK_TIME_IN_S } = test);
2526
});
2627

yarn-project/ethereum/src/test/rollup_cheat_codes.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ export class RollupCheatCodes {
216216
action: (owner: Hex, rollup: GetContractReturnType<typeof RollupAbi, ViemPublicClient>) => Promise<void>,
217217
) {
218218
const owner = await this.rollup.read.owner();
219+
220+
// Since the owner is likely the gov, if we want to directly impersonate and call we gotta make sure that we have
221+
// funding to actually execute anything.
222+
await this.ethCheatCodes.setBalance(EthAddress.fromString(owner), 10n * 10n ** 18n);
223+
219224
await this.ethCheatCodes.startImpersonating(owner);
220225
await action(owner, this.rollup);
221226
await this.ethCheatCodes.stopImpersonating(owner);
@@ -258,9 +263,6 @@ export class RollupCheatCodes {
258263
*/
259264
public async setProvingCostPerMana(ethValue: bigint) {
260265
await this.asOwner(async (account, rollup) => {
261-
// We are minting funds for the `account` since we seem to sometimes ends up with just a poor account :shrug:.
262-
await this.ethCheatCodes.setBalance(EthAddress.fromString(account), 10n * 10n ** 18n);
263-
264266
const hash = await rollup.write.setProvingCostPerMana([ethValue], {
265267
account,
266268
chain: this.client.chain,

0 commit comments

Comments
 (0)