From 747e9305dd37d3178b2738f5f77d50e233e8a372 Mon Sep 17 00:00:00 2001 From: Andres Adjimann Date: Mon, 9 Oct 2023 11:54:19 -0300 Subject: [PATCH] test: fix broken test --- packages/marketplace/test/exchange/OrderValidator.test.ts | 2 +- packages/marketplace/test/utils/order.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/marketplace/test/exchange/OrderValidator.test.ts b/packages/marketplace/test/exchange/OrderValidator.test.ts index eb9c0d0f3e..fc9bdbe78f 100644 --- a/packages/marketplace/test/exchange/OrderValidator.test.ts +++ b/packages/marketplace/test/exchange/OrderValidator.test.ts @@ -209,7 +209,7 @@ describe('OrderValidator.sol', function () { await expect( OrderValidatorAsUser.validate(order, '0x', user1.address) - ).to.be.revertedWith('contract order signature verification error'); + ).to.be.revertedWith('order signature verification error'); }); it('should validate when maker is contract but not sender and isValidSignature returns magic value', async function () { diff --git a/packages/marketplace/test/utils/order.ts b/packages/marketplace/test/utils/order.ts index bc0b8c45ca..a3c88569ab 100644 --- a/packages/marketplace/test/utils/order.ts +++ b/packages/marketplace/test/utils/order.ts @@ -30,7 +30,7 @@ export type Order = { }; export const OrderDefault = async ( - maker: Signer, + maker: {getAddress: () => Promise}, makeAsset: Asset, taker: Signer | ZeroAddress, takeAsset: Asset, @@ -40,7 +40,8 @@ export const OrderDefault = async ( ): Promise => ({ maker: await maker.getAddress(), makeAsset, - taker: taker === ZeroAddress ? ZeroAddress : await taker.getAddress(), + taker: + taker === ZeroAddress ? ZeroAddress : await (taker as Signer).getAddress(), takeAsset, salt, start,