Skip to content

Commit

Permalink
erase .wait and mine
Browse files Browse the repository at this point in the history
  • Loading branch information
gfournieriExec committed Apr 29, 2024
1 parent 4bcdf32 commit 12fcf0e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/beacon/Voucher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

import { SignerWithAddress } from '@nomicfoundation/hardhat-ethers/signers';
import { loadFixture, mine, time } from '@nomicfoundation/hardhat-toolbox/network-helpers';
import { loadFixture, time } from '@nomicfoundation/hardhat-toolbox/network-helpers';
import { expect } from 'chai';
import { ethers } from 'hardhat';
import * as commonUtils from '../../scripts/common';
Expand Down Expand Up @@ -485,10 +485,9 @@ describe('Voucher', function () {
.addEligibleAsset(voucherType, asset)
.then((x) => x.wait());
}
const authorizationTx = await voucherWithOwnerSigner.authorizeAccount(
anyone.address,
);
await authorizationTx.wait();
await voucherWithOwnerSigner
.authorizeAccount(anyone.address)
.then((tx) => tx.wait());

const voucherWithAnyoneSigner = voucher.connect(anyone);
await expect(
Expand Down Expand Up @@ -544,8 +543,6 @@ describe('Voucher', function () {
it('Should not match orders boost when voucher is expired', async () => {
const expirationDate = (await voucher.getExpiration()) + BigInt(10);
await time.setNextBlockTimestamp(expirationDate);
// Mine empty block to get to voucher expiration time.
await mine();
await expect(
voucherWithOwnerSigner.matchOrdersBoost(
appOrder,
Expand Down

0 comments on commit 12fcf0e

Please sign in to comment.