Skip to content

Commit

Permalink
Set voucherWithAnyoneSigner more global
Browse files Browse the repository at this point in the history
  • Loading branch information
gfournieriExec committed Apr 29, 2024
1 parent 12fcf0e commit 6ba5992
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/beacon/Voucher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ describe('Voucher', function () {
let voucherHub: VoucherHub;
let voucher: Voucher;
let voucherWithOwnerSigner: Voucher;
let voucherWithAnyoneSigner: Voucher;

beforeEach(async () => {
({ voucherHub, voucherOwner1, requester, anyone } = await loadFixture(deployFixture));
Expand All @@ -330,6 +331,7 @@ describe('Voucher', function () {
.then(() => voucherHub.getVoucher(voucherOwner1))
.then((voucherAddress) => commonUtils.getVoucher(voucherAddress));
voucherWithOwnerSigner = voucher.connect(voucherOwner1);
voucherWithAnyoneSigner = voucher.connect(anyone);
});

it('Should match orders with full sponsored amount', async () => {
Expand Down Expand Up @@ -489,7 +491,6 @@ describe('Voucher', function () {
.authorizeAccount(anyone.address)
.then((tx) => tx.wait());

const voucherWithAnyoneSigner = voucher.connect(anyone);
await expect(
voucherWithAnyoneSigner.matchOrdersBoost(
appOrder,
Expand Down

0 comments on commit 6ba5992

Please sign in to comment.