Skip to content

Commit

Permalink
Address lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MightOfOaks committed Feb 22, 2024
1 parent e3a57c7 commit 6c5efe8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions contracts/rekt-airdrop/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pub fn execute(
mod build_message {
use super::*;
use crate::state::Config;
use cosmwasm_std::{to_binary, Deps, WasmMsg};
use cosmwasm_std::{to_json_binary, Deps, WasmMsg};
use sg_std::{StargazeMsgWrapper, SubMsg};
use validation::validate_airdrop_amount;
use whitelist_immutable::msg::InstantiateMsg as WGInstantiateMsg;
Expand All @@ -78,7 +78,7 @@ mod build_message {
admin: Some(env.contract.address.to_string()),
funds: vec![],
label: GENERIC_WHITELIST_LABEL.to_string(),
msg: to_binary(&whitelist_instantiate_msg)?,
msg: to_json_binary(&whitelist_instantiate_msg)?,
};
Ok(SubMsg::reply_on_success(wasm_msg, INIT_WHITELIST_REPLY_ID))
}
Expand Down
6 changes: 3 additions & 3 deletions contracts/rekt-airdrop/src/query.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::{msg::QueryMsg, state::CONFIG, ContractError};
use cosmwasm_std::{entry_point, to_binary, Binary};
use cosmwasm_std::{entry_point, to_json_binary, Binary};
use cosmwasm_std::{Addr, Env};
use cosmwasm_std::{Deps, DepsMut, StdResult};
use vending_minter::helpers::MinterContract;
Expand All @@ -9,9 +9,9 @@ use whitelist_immutable::helpers::WhitelistImmutableContract;
pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<Binary> {
match msg {
QueryMsg::AirdropEligible { eth_address } => {
to_binary(&query_airdrop_is_eligible(deps, eth_address)?)
to_json_binary(&query_airdrop_is_eligible(deps, eth_address)?)
}
QueryMsg::GetMinter {} => to_binary(&query_minter(deps)?),
QueryMsg::GetMinter {} => to_json_binary(&query_minter(deps)?),
}
}

Expand Down
10 changes: 4 additions & 6 deletions test-suite/src/dydx_airdrop/setup/mock_minter_contract.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use cosmwasm_std::entry_point;
use cosmwasm_std::{
to_binary, Binary, Coin, Deps, DepsMut, Env, MessageInfo, StdResult, Timestamp,
};
use cosmwasm_std::{entry_point, to_json_binary};
use cosmwasm_std::{Binary, Coin, Deps, DepsMut, Env, MessageInfo, StdResult, Timestamp};
use cw_multi_test::{Contract, ContractWrapper};
use dydx_airdrop::error::ContractError;
use sg_std::{Response, StargazeMsgWrapper};
Expand Down Expand Up @@ -46,8 +44,8 @@ pub fn execute(
#[cfg_attr(not(feature = "library"), entry_point)]
pub fn query(_deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<Binary> {
match msg {
QueryMsg::Config {} => to_binary(&query_config()),
_ => to_binary("invalid"),
QueryMsg::Config {} => to_json_binary(&query_config()),
_ => to_json_binary("invalid"),
}
}

Expand Down
6 changes: 3 additions & 3 deletions test-suite/src/dydx_airdrop/setup/mock_whitelist_contract.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use cosmwasm_std::entry_point;
use cosmwasm_std::{to_binary, Binary, Deps, DepsMut, Env, MessageInfo, StdResult};
use cosmwasm_std::{entry_point, to_json_binary};
use cosmwasm_std::{Binary, Deps, DepsMut, Env, MessageInfo, StdResult};
use cw_multi_test::{Contract, ContractWrapper};
use dydx_airdrop::error::ContractError;
use sg_std::{Response, StargazeMsgWrapper};
Expand Down Expand Up @@ -31,7 +31,7 @@ pub fn execute(

#[cfg_attr(not(feature = "library"), entry_point)]
pub fn query(_deps: Deps, _env: Env, _msg: QueryMsg) -> StdResult<Binary> {
to_binary("mock")
to_json_binary("mock")
}

fn execute_add_members() -> Result<Response, ContractError> {
Expand Down

0 comments on commit 6c5efe8

Please sign in to comment.