Skip to content
Prev Previous commit
Next Next commit
fix(tests): add missing hooks arg to stateview_get_slot0/liquidity calls
  • Loading branch information
TimeToBuildBob committed Jul 28, 2026
commit ca3ce150aaf96db082d82f7e9864d0f2d1c910dd
2 changes: 2 additions & 0 deletions tests/test_v4_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ def test_get_slot0(self, client: Uniswap4) -> None:
USDC_ADDRESS,
fee=ETH_USDC_FEE,
tick_spacing=ETH_USDC_TICK_SPACING,
hooks=ZERO_HOOK,
)
assert slot0["sqrtPriceX96"] > 0
# Tick is a signed integer; ETH/USDC tick should be negative
Expand All @@ -292,6 +293,7 @@ def test_get_pool_liquidity(self, client: Uniswap4) -> None:
USDC_ADDRESS,
fee=ETH_USDC_FEE,
tick_spacing=ETH_USDC_TICK_SPACING,
hooks=ZERO_HOOK,
)
assert liquidity > 0, "ETH/USDC 0.05% pool should have liquidity"

Expand Down
Loading