Skip to content

Commit

Permalink
Merge pull request #111 from confio/ensure-tgrade-app-is-querier
Browse files Browse the repository at this point in the history
Implement Querier for TgradeApp
  • Loading branch information
ethanfrey authored Feb 17, 2022
2 parents 3097232 + b4d2dcf commit a8cea53
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/bindings-test/src/multitest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use thiserror::Error;
use cosmwasm_std::testing::{MockApi, MockStorage};
use cosmwasm_std::{
from_slice, to_binary, Addr, Api, Binary, BlockInfo, Coin, CustomQuery, Empty, Order, Querier,
StdError, StdResult, Storage, Timestamp,
QuerierResult, StdError, StdResult, Storage, Timestamp,
};
use cw_multi_test::{
App, AppResponse, BankKeeper, BankSudo, BasicAppBuilder, CosmosRouter, Executor, Module,
Expand Down Expand Up @@ -323,6 +323,12 @@ impl DerefMut for TgradeApp {
}
}

impl Querier for TgradeApp {
fn raw_query(&self, bin_request: &[u8]) -> QuerierResult {
self.0.raw_query(bin_request)
}
}

impl TgradeApp {
pub fn new(owner: &str) -> Self {
let owner = Addr::unchecked(owner);
Expand Down

0 comments on commit a8cea53

Please sign in to comment.