fix: access hooks attr, not hook

This was a discrepancy between indexer and execution.
This commit is contained in:
TAMARA LIPOWSKI
2025-08-21 17:41:03 -04:00
parent ea9a1a88ca
commit 2c38cf84fc

View File

@@ -185,7 +185,7 @@ impl SwapEncoder for UniswapV4SwapEncoder {
EncodingError::FatalError("Failed to pad tick spacing bytes".to_string())
})?;
let hook_address = match get_static_attribute(swap, "hook") {
let hook_address = match get_static_attribute(swap, "hooks") {
Ok(hook) => Address::from_slice(&hook),
Err(_) => Address::ZERO,
};