diff --git a/test-suite/src/base_minter/tests/integration_tests.rs b/test-suite/src/base_minter/tests/integration_tests.rs index 35defec7d..675c9e877 100644 --- a/test-suite/src/base_minter/tests/integration_tests.rs +++ b/test-suite/src/base_minter/tests/integration_tests.rs @@ -215,7 +215,7 @@ fn update_start_trading_time() { &ExecuteMsg::UpdateStartTradingTime(Some(default_start_trading_time)), &[], ); - println!("res is {:?}", res); + println!("res is {res:?}"); assert!(res.is_ok()); // confirm trading start time diff --git a/test-suite/src/common_setup/templates.rs b/test-suite/src/common_setup/templates.rs index 5b9051194..a5d2f2b7e 100644 --- a/test-suite/src/common_setup/templates.rs +++ b/test-suite/src/common_setup/templates.rs @@ -326,22 +326,13 @@ pub fn base_minter_with_specified_sg721( } } +#[derive(Default)] pub struct OpenEditionMinterCustomParams<'a> { pub denom: Option<&'a str>, pub mint_fee_bps: Option, pub airdrop_mint_price_amount: Option, } -impl<'a> Default for OpenEditionMinterCustomParams<'a> { - fn default() -> Self { - OpenEditionMinterCustomParams { - denom: None, - mint_fee_bps: None, - airdrop_mint_price_amount: None, - } - } -} - // Custom params set to a high level function to ease the tests #[allow(clippy::too_many_arguments)] pub fn open_edition_minter_custom_template( diff --git a/test-suite/src/sg_eth_airdrop/setup/collection_whitelist_helpers.rs b/test-suite/src/sg_eth_airdrop/setup/collection_whitelist_helpers.rs index 6dcb1b49b..7f6674cf8 100644 --- a/test-suite/src/sg_eth_airdrop/setup/collection_whitelist_helpers.rs +++ b/test-suite/src/sg_eth_airdrop/setup/collection_whitelist_helpers.rs @@ -28,7 +28,7 @@ pub fn send_funds_to_address(app: &mut StargazeApp, target_address_str: &str, am amount: coins(amount, NATIVE_DENOM), } })) - .map_err(|err| println!("{:?}", err)) + .map_err(|err| println!("{err:?}")) .ok(); } @@ -43,7 +43,7 @@ pub fn execute_mint_fail_not_on_whitelist(app: &mut StargazeApp, minter_addr: Ad &coins(MINT_PRICE, NATIVE_DENOM), ); - let expected_error = format!("address not on whitelist: {}", STARGAZE_WALLET_01); + let expected_error = format!("address not on whitelist: {STARGAZE_WALLET_01}"); assert_eq!(res.unwrap_err().root_cause().to_string(), expected_error); } diff --git a/test-suite/src/sg_eth_airdrop/setup/configure_mock_minter.rs b/test-suite/src/sg_eth_airdrop/setup/configure_mock_minter.rs index ce1937fed..516c9913f 100644 --- a/test-suite/src/sg_eth_airdrop/setup/configure_mock_minter.rs +++ b/test-suite/src/sg_eth_airdrop/setup/configure_mock_minter.rs @@ -19,11 +19,11 @@ use crate::sg_eth_airdrop::setup::mock_whitelist_contract::mock_whitelist; fn configure_mock_minter(app: &mut StargazeApp, creator: Addr) { let minter_code_id = app.store_code(mock_minter()); - println!("minter_code_id: {}", minter_code_id); + println!("minter_code_id: {minter_code_id}"); let creation_fee = coins(CREATION_FEE, NATIVE_DENOM); let factory_code_id = app.store_code(contract_vending_factory()); - println!("factory_code_id: {}", factory_code_id); + println!("factory_code_id: {factory_code_id}"); let mut params = mock_params(None); params.code_id = minter_code_id; diff --git a/test-suite/src/sg_eth_airdrop/setup/execute_msg.rs b/test-suite/src/sg_eth_airdrop/setup/execute_msg.rs index 875b048e8..5a1a105eb 100644 --- a/test-suite/src/sg_eth_airdrop/setup/execute_msg.rs +++ b/test-suite/src/sg_eth_airdrop/setup/execute_msg.rs @@ -28,7 +28,7 @@ pub fn instantiate_contract(params: InstantiateParams) -> Result