Skip to content

Commit

Permalink
apply formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonAndell committed Nov 6, 2023
1 parent 6786149 commit 8472f6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion contracts/token-contracts/cw-hub-bnusd/src/constants.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

use cosmwasm_std::Uint128;

pub const X_CROSS_TRANSFER: &str = "xCrossTransfer";
Expand Down
11 changes: 5 additions & 6 deletions contracts/token-contracts/cw-hub-bnusd/src/contract.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use std::str::FromStr;

use crate::constants::{
TOKEN_DECIMALS, TOKEN_NAME, TOKEN_SYMBOL, TOKEN_TOTAL_SUPPLY,
X_CROSS_TRANSFER, X_CROSS_TRANSFER_REVERT,
TOKEN_DECIMALS, TOKEN_NAME, TOKEN_SYMBOL, TOKEN_TOTAL_SUPPLY, X_CROSS_TRANSFER,
X_CROSS_TRANSFER_REVERT,
};
use crate::error::ContractError;
use crate::state::{
Expand All @@ -13,7 +13,8 @@ use cw_common::network_address::IconAddressValidation;
#[cfg(not(feature = "library"))]
use cosmwasm_std::entry_point;
use cosmwasm_std::{
to_binary, Addr, Binary, Deps, DepsMut, Empty, Env, MessageInfo, QueryRequest, Response, StdResult, WasmQuery,
to_binary, Addr, Binary, Deps, DepsMut, Empty, Env, MessageInfo, QueryRequest, Response,
StdResult, WasmQuery,
};

use cw2::set_contract_version;
Expand Down Expand Up @@ -161,7 +162,6 @@ pub fn query(deps: Deps, _env: Env, msg: QueryMsg) -> StdResult<Binary> {
}
}


#[cfg_attr(not(feature = "library"), entry_point)]
pub fn migrate(deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Response, ContractError> {
set_contract_version(deps.storage, CONTRACT_NAME, CONTRACT_VERSION)
Expand All @@ -170,12 +170,11 @@ pub fn migrate(deps: DepsMut, _env: Env, _msg: MigrateMsg) -> Result<Response, C
Ok(Response::default().add_attribute("migrate", "successful"))
}


mod execute {
use std::str::from_utf8;

use bytes::BytesMut;
use cosmwasm_std::{to_binary, Addr, CosmosMsg, SubMsg, ensure};
use cosmwasm_std::{ensure, to_binary, Addr, CosmosMsg, SubMsg};
use cw_common::network_address::NetId;
use cw_ibc_rlp_lib::rlp::{decode, encode};
use debug_print::debug_println;
Expand Down

0 comments on commit 8472f6f

Please sign in to comment.