From 1891b8a3e9bc53a3f32013d5fe3734496afcf700 Mon Sep 17 00:00:00 2001 From: Kostiantyn Smyrnov Date: Wed, 24 May 2023 14:08:06 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Fixed=20wrong=20constants?= =?UTF-8?q?=20path=20in=20test=20utils?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/utils.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/test/utils.ts b/test/utils.ts index 69902ea..7eae275 100644 --- a/test/utils.ts +++ b/test/utils.ts @@ -7,11 +7,6 @@ import { VoidSigner, ContractTransaction, } from "ethers"; -import { - PAYMENT_OPTION_TYPE_HASH, - CANCEL_OPTION_TYPE_HASH, - OFFER_TYPE_HASH, -} from "../package/src/constants"; import { MockERC20Dec18Permit } from "../typechain"; import { PaymentOption, @@ -25,6 +20,15 @@ export const nonces: Record = { request: 1, }; +export const PAYMENT_OPTION_TYPE_HASH = + "0x2f8fc0b3ad3f58f6deb367673d38e4112a3c8c64de033c5b780b84ef8f67cde6"; + +export const CANCEL_OPTION_TYPE_HASH = + "0x8ea27057ea8a0239f02c8b75748218a035a5a2a2a0785b53aaa99af91ff538c5"; + +export const OFFER_TYPE_HASH = + "0xcf2addd2f89a78825d3f130a17e47b4e9963adfd09837fa9c454569faa073354"; + export const randomId = (): string => utils.solidityKeccak256( ["string"], @@ -353,7 +357,7 @@ export const structEqual = ( for (const key of Object.keys(obj)) { expect(obj[key]).to.eq( struct[key], - `"${structName}.${key}" value validation failed` + `'${structName}.${key}' value validation failed` ); } };