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,