Skip to content

Commit

Permalink
Fix virus contract
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Nov 10, 2023
1 parent 5d30b13 commit a91e46e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/virus/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ pub fn execute_spread(

attributes.push(Attribute::new(format!("path{i}"), path.clone()));

// clippy produces a false positive here, see https://github.com/rust-lang/rust-clippy/issues/9841
#[allow(clippy::explicit_auto_deref)]
let address = deps
.api
.addr_humanize(&instantiate2_address(&checksum, &creator, &salt)?)?;
.addr_humanize(&instantiate2_address(&*checksum, &creator, &salt)?)?;
attributes.push(Attribute::new(
format!("predicted_address{i}"),
address.clone(),
Expand Down

0 comments on commit a91e46e

Please sign in to comment.