Skip to content

Commit

Permalink
lower number to prevent OOG
Browse files Browse the repository at this point in the history
  • Loading branch information
saucepoint committed Jan 23, 2025
1 parent 6626d76 commit 7c09fd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/HookMiner.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ library HookMiner {
// mask to slice out the bottom 14 bit of the address
uint160 constant FLAG_MASK = 0x3FFF; // 0000 ... 0000 0011 1111 1111 1111

// Maximum number of iterations to find a salt, avoid infinite loops
uint256 constant MAX_LOOP = 200_000;
// Maximum number of iterations to find a salt, avoid infinite loops or MemoryOOG
uint256 constant MAX_LOOP = 144_444;

/// @notice Find a salt that produces a hook address with the desired `flags`
/// @param deployer The address that will deploy the hook. In `forge test`, this will be the test contract `address(this)` or the pranking address
Expand Down

0 comments on commit 7c09fd6

Please sign in to comment.