diff --git a/contracts/warp/cw20/src/contract.rs b/contracts/warp/cw20/src/contract.rs index a45c75dd..503b2a28 100644 --- a/contracts/warp/cw20/src/contract.rs +++ b/contracts/warp/cw20/src/contract.rs @@ -181,6 +181,7 @@ fn mailbox_handle( )) } +#[allow(clippy::too_many_arguments)] fn transfer_remote( deps: DepsMut, env: Env, @@ -201,7 +202,7 @@ fn transfer_remote( // validate hook if present if let Some(ref custom_hook) = hook { - let _ = deps.api.addr_validate(&custom_hook)?; + let _ = deps.api.addr_validate(custom_hook)?; } let mut msgs: Vec = vec![]; diff --git a/contracts/warp/native/src/contract.rs b/contracts/warp/native/src/contract.rs index 5e0648a3..ef6c234f 100644 --- a/contracts/warp/native/src/contract.rs +++ b/contracts/warp/native/src/contract.rs @@ -194,6 +194,7 @@ fn mailbox_handle( )) } +#[allow(clippy::too_many_arguments)] fn transfer_remote( deps: DepsMut, env: Env, @@ -228,7 +229,7 @@ fn transfer_remote( // validate hook if present if let Some(ref custom_hook) = hook { - let _ = deps.api.addr_validate(&custom_hook)?; + let _ = deps.api.addr_validate(custom_hook)?; } let mut msgs: Vec = vec![];