Skip to content

Commit

Permalink
fix: missed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
mfw78 committed Oct 9, 2024
1 parent 1fb1126 commit 711ff93
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/ts/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,21 +239,6 @@ export function hashTypedData(
return ethers.utils._TypedDataEncoder.hash(domain, types, data);
}

/**
* Compute the 32-byte signing hash for the specified order.
*
* @param domain The EIP-712 domain separator to compute the hash for.
* @param order The order to compute the digest for.
* @return Hex-encoded 32-byte order digest.
*/
function hashOrder(domain: TypedDataDomain, order: Order): string {
return hashTypedData(
domain,
{ Order: ORDER_TYPE_FIELDS },
normalizeOrder(order),
);
}

/**
* The byte length of an order UID.
*/
Expand Down

0 comments on commit 711ff93

Please sign in to comment.