Skip to content

Commit 67f5d8f

Browse files
razwwclaude
andcommitted
ci: add node_modules to foundry libs and install via yarn
NFTDescriptor / NFTSVG / NonfungibleTokenPositionDescriptor / V3Migrator import from node_modules paths (@uniswap/lib, @uniswap/v2-core, base64-sol). Teach forge to resolve those via libs = ["lib", "node_modules"] and have CI run yarn install before forge build. POOL_INIT_CODE_HASH refreshed again for the metadata-hash shift. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent b69bb36 commit 67f5d8f

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
- name: Show Forge version
2929
run: forge --version
3030

31+
- name: Install node_modules
32+
run: yarn install --frozen-lockfile
33+
3134
- name: Run Forge build
3235
run: forge build --sizes
3336

foundry.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[profile.default]
22
src = "src"
33
out = "out"
4-
libs = ["lib"]
4+
libs = ["lib", "node_modules"]
55
optimizer = true
66
optimizer_runs = 1000
77

src/periphery/libraries/PoolAddress.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pragma solidity >=0.5.0;
44
/// @title Provides functions for deriving a pool address from the factory, tokens, and the fee
55
library PoolAddress {
66
// Post-rename init code hash of ListaV3Pool; must match keccak256(type(ListaV3Pool).creationCode).
7-
bytes32 internal constant POOL_INIT_CODE_HASH = 0x810bcfa2272833e7170faadd4e1478e6c08783b7a576c7ab4a48e11e679eeaad;
7+
bytes32 internal constant POOL_INIT_CODE_HASH = 0x866ffd858f844cac69b3a90d247f1c6746d1a126fc3304e9ae519de5e76f7623;
88

99
/// @notice The identifying key of the pool
1010
struct PoolKey {

0 commit comments

Comments
 (0)