File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,6 @@ import {
77 VoidSigner ,
88 ContractTransaction ,
99} from "ethers" ;
10- import {
11- PAYMENT_OPTION_TYPE_HASH ,
12- CANCEL_OPTION_TYPE_HASH ,
13- OFFER_TYPE_HASH ,
14- } from "../package/src/constants" ;
1510import { MockERC20Dec18Permit } from "../typechain" ;
1611import {
1712 PaymentOption ,
@@ -25,6 +20,15 @@ export const nonces: Record<string, number> = {
2520 request : 1 ,
2621} ;
2722
23+ export const PAYMENT_OPTION_TYPE_HASH =
24+ "0x2f8fc0b3ad3f58f6deb367673d38e4112a3c8c64de033c5b780b84ef8f67cde6" ;
25+
26+ export const CANCEL_OPTION_TYPE_HASH =
27+ "0x8ea27057ea8a0239f02c8b75748218a035a5a2a2a0785b53aaa99af91ff538c5" ;
28+
29+ export const OFFER_TYPE_HASH =
30+ "0xcf2addd2f89a78825d3f130a17e47b4e9963adfd09837fa9c454569faa073354" ;
31+
2832export const randomId = ( ) : string =>
2933 utils . solidityKeccak256 (
3034 [ "string" ] ,
@@ -353,7 +357,7 @@ export const structEqual = (
353357 for ( const key of Object . keys ( obj ) ) {
354358 expect ( obj [ key ] ) . to . eq (
355359 struct [ key ] ,
356- `" ${ structName } .${ key } " value validation failed`
360+ `' ${ structName } .${ key } ' value validation failed`
357361 ) ;
358362 }
359363} ;
You can’t perform that action at this time.
0 commit comments