Skip to content

Commit

Permalink
allow & fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
byeongsu-hong committed May 16, 2024
1 parent 7f2fe6c commit 1c9c6f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion contracts/warp/cw20/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ fn mailbox_handle(
))
}

#[allow(clippy::too_many_arguments)]
fn transfer_remote(
deps: DepsMut,
env: Env,
Expand All @@ -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<CosmosMsg> = vec![];
Expand Down
3 changes: 2 additions & 1 deletion contracts/warp/native/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ fn mailbox_handle(
))
}

#[allow(clippy::too_many_arguments)]
fn transfer_remote(
deps: DepsMut,
env: Env,
Expand Down Expand Up @@ -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<CosmosMsg> = vec![];
Expand Down

0 comments on commit 1c9c6f8

Please sign in to comment.