Skip to content

Commit

Permalink
Refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszDepta committed Oct 18, 2023
1 parent 438de0c commit f9c5936
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ where
// generate predictable contract address when salt is provided
let code_data = self.code_data(code_id)?;
let canonical_addr = &api.addr_canonicalize(creator.as_ref())?;
self.generator.predictable_contract_address(
self.address_generator.predictable_contract_address(
api,
storage,
code_id,
Expand All @@ -840,7 +840,7 @@ where
)?
} else {
// generate classic, unpredictable contract address
self.generator
self.address_generator
.classic_contract_address(api, storage, code_id, instance_id)?
};

Expand Down
7 changes: 3 additions & 4 deletions tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

use bech32::{decode, encode, FromBase32, ToBase32, Variant};
use cosmwasm_std::{
instantiate2_address, to_binary, Addr, Api, Binary, CanonicalAddr, Deps, DepsMut, Empty, Env,
MessageInfo, RecoverPubkeyError, Response, StdError, StdResult, Storage, VerificationError,
WasmMsg,
instantiate2_address, Addr, Api, CanonicalAddr, RecoverPubkeyError, StdError, StdResult,
Storage, VerificationError,
};
use cw_multi_test::error::AnyResult;
use cw_multi_test::{AddressGenerator, Contract, ContractWrapper};
use cw_multi_test::AddressGenerator;
use cw_storage_plus::Item;
use serde::{Deserialize, Serialize};
use sha2::digest::Update;
Expand Down

0 comments on commit f9c5936

Please sign in to comment.