Fix attribute name

This commit is contained in:
die-herdplatte
2025-03-20 11:26:52 +01:00
parent 05d6286921
commit e954bc7e59

View File

@@ -1,4 +1,4 @@
use std::{ops::Add, str::FromStr}; use std::str::FromStr;
use alloy_primitives::{Address, Bytes as AlloyBytes}; use alloy_primitives::{Address, Bytes as AlloyBytes};
use alloy_sol_types::SolValue; use alloy_sol_types::SolValue;
@@ -288,7 +288,7 @@ impl SwapEncoder for EkuboEncoder {
.map_err(|_| EncodingError::FatalError("tick_spacing should be an u32".to_string()))? .map_err(|_| EncodingError::FatalError("tick_spacing should be an u32".to_string()))?
); );
let extension: Address = get_static_attribute(&swap, "fee")? let extension: Address = get_static_attribute(&swap, "extension")?
.as_slice() .as_slice()
.try_into() .try_into()
.map_err(|_| EncodingError::FatalError("extension should be an address".to_string()))?; .map_err(|_| EncodingError::FatalError("extension should be an address".to_string()))?;