Skip to content

Commit bf7ce92

Browse files
committed
chore: format
1 parent eb95bee commit bf7ce92

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

packages/injective-cosmwasm/src/exchange/types.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,10 @@ mod tests {
512512
#[test]
513513
fn market_id_checks() {
514514
let wrong_prefix_err = MarketId::new("0001EDFAB47F124748DC89998EB33144AF734484BA07099014594321729A0CA16B").unwrap_err();
515-
assert_eq!(wrong_prefix_err.to_string(), "kind: Other, error: Invalid prefix: market_id must start with 0x");
515+
assert_eq!(
516+
wrong_prefix_err.to_string(),
517+
"kind: Other, error: Invalid prefix: market_id must start with 0x"
518+
);
516519

517520
let wrong_length_err = MarketId::new("0x01EDFAB47F124748DC89998EB33144AF734484BA07099014594321729A0CA16").unwrap_err();
518521
assert_eq!(

packages/injective-cosmwasm/src/exchange_mock_querier.rs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ use std::marker::PhantomData;
22
use std::str::FromStr;
33

44
use cosmwasm_std::testing::{MockApi, MockStorage};
5-
use cosmwasm_std::{from_json, to_json_binary, Addr, BalanceResponse, BankQuery, Binary, Coin, ContractResult, OwnedDeps, Querier, QuerierResult, QueryRequest, SupplyResponse, SystemError, SystemResult, Uint128, Uint256, WasmQuery};
5+
use cosmwasm_std::{
6+
from_json, to_json_binary, Addr, BalanceResponse, BankQuery, Binary, Coin, ContractResult, OwnedDeps, Querier, QuerierResult, QueryRequest,
7+
SupplyResponse, SystemError, SystemResult, Uint128, Uint256, WasmQuery,
8+
};
69

710
use injective_math::FPDecimal;
811

@@ -426,7 +429,6 @@ pub trait HandlesBankBalanceQuery {
426429
fn handle(&self, address: String, denom: String) -> QuerierResult;
427430
}
428431

429-
430432
pub trait HandlesByAddressQuery {
431433
fn handle(&self, address: String) -> QuerierResult;
432434
}
@@ -783,7 +785,10 @@ impl TestDeposit {
783785
}
784786

785787
pub mod handlers {
786-
use cosmwasm_std::{to_json_binary, Addr, BalanceResponse, Binary, Checksum, CodeInfoResponse, Coin, ContractInfoResponse, ContractResult, QuerierResult, SupplyResponse, SystemError, SystemResult, Uint128, Uint256};
788+
use cosmwasm_std::{
789+
to_json_binary, Addr, BalanceResponse, Binary, Checksum, CodeInfoResponse, Coin, ContractInfoResponse, ContractResult, QuerierResult,
790+
SupplyResponse, SystemError, SystemResult, Uint128, Uint256,
791+
};
787792
use std::collections::HashMap;
788793

789794
use injective_math::FPDecimal;
@@ -803,8 +808,8 @@ pub mod handlers {
803808
TrimmedSpotLimitOrder,
804809
};
805810
use crate::{
806-
HandlesBankBalanceQuery, HandlesCodeInfo, HandlesContractInfo,
807-
HandlesTraderDerivativeOrdersToCancelUpToAmountQuery, MarketMidPriceAndTOBResponse, OracleType,
811+
HandlesBankBalanceQuery, HandlesCodeInfo, HandlesContractInfo, HandlesTraderDerivativeOrdersToCancelUpToAmountQuery,
812+
MarketMidPriceAndTOBResponse, OracleType,
808813
};
809814

810815
use super::{HandlesOraclePriceQuery, TestDeposit};

0 commit comments

Comments
 (0)