Skip to content

Commit

Permalink
Merge pull request #59 from ProjectOpenSea/info-document-authorizeOrd…
Browse files Browse the repository at this point in the history
…er_calldata_baseOffset

document `authorizeOrder_calldata_baseOffset` more
  • Loading branch information
0age authored Mar 5, 2024
2 parents be2140a + 49c22cc commit 602e1e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/types/lib/ConsiderationConstants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ uint256 constant OrderFulfilled_consideration_body_offset = 0x120;

/*
* 3 memory slots/words for `authorizeOrder` and `validateOrder` calldata
* to be used for the extra data/context data and order hashes
* to be used for tails of extra data (length 0) and order hashes (length 1)
*/
uint256 constant OrderFulfilled_post_memory_region_reservedBytes = 0x60;

Expand Down Expand Up @@ -334,9 +334,9 @@ uint256 constant OrderFulfilled_post_memory_region_reservedBytes = 0x60;
* ...
*
* Note that the padded calldata selector will be at minimum at the
* 0x80 memory slot if no total original additional recipients were provided
* 0x80 memory slot.
*/
uint256 constant authorizeOrder_calldata_baseOffset = 0x80; // 0x200 - 0x180
uint256 constant authorizeOrder_calldata_baseOffset = OrderFulfilled_offer_length_baseOffset - 0x180;

// BasicOrderParameters
uint256 constant BasicOrder_parameters_cdPtr = 0x04;
Expand Down

0 comments on commit 602e1e4

Please sign in to comment.