Skip to content

Commit

Permalink
remove self reference of library (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongeric authored Aug 2, 2024
1 parent 5dab87f commit 255f774
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib/PriorityOrderLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ library PriorityOrderLib {
abi.encodePacked(
"PriorityOrder witness)",
OrderInfoLib.ORDER_INFO_TYPE,
PriorityOrderLib.PRIORITY_INPUT_TOKEN_TYPE,
PriorityOrderLib.TOPLEVEL_PRIORITY_ORDER_TYPE,
PriorityOrderLib.PRIORITY_OUTPUT_TOKEN_TYPE,
PRIORITY_INPUT_TOKEN_TYPE,
TOPLEVEL_PRIORITY_ORDER_TYPE,
PRIORITY_OUTPUT_TOKEN_TYPE,
TOKEN_PERMISSIONS_TYPE
)
);
Expand All @@ -90,10 +90,10 @@ library PriorityOrderLib {
// EIP712 notes that nested structs should be ordered alphabetically:
// OrderInfo, PriorityInput, PriorityOutput
bytes internal constant ORDER_TYPE = abi.encodePacked(
PriorityOrderLib.TOPLEVEL_PRIORITY_ORDER_TYPE,
TOPLEVEL_PRIORITY_ORDER_TYPE,
OrderInfoLib.ORDER_INFO_TYPE,
PriorityOrderLib.PRIORITY_INPUT_TOKEN_TYPE,
PriorityOrderLib.PRIORITY_OUTPUT_TOKEN_TYPE
PRIORITY_INPUT_TOKEN_TYPE,
PRIORITY_OUTPUT_TOKEN_TYPE
);
bytes32 internal constant ORDER_TYPE_HASH = keccak256(ORDER_TYPE);

Expand Down

0 comments on commit 255f774

Please sign in to comment.