Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vladjdk committed Nov 16, 2023
1 parent f71b574 commit 4dbdc21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::env::current_dir;
use std::fs::create_dir_all;

use controller::{
account::{FundingAccountResponse, FundingAccountsResponse},
job::{JobResponse, JobsResponse},
};
use cosmwasm_schema::{export_schema, remove_schemas, schema_for};
Expand All @@ -19,6 +18,4 @@ fn main() {
export_schema(&schema_for!(Config), &out_dir);
export_schema(&schema_for!(JobResponse), &out_dir);
export_schema(&schema_for!(JobsResponse), &out_dir);
export_schema(&schema_for!(FundingAccountResponse), &out_dir);
export_schema(&schema_for!(FundingAccountsResponse), &out_dir);
}
4 changes: 2 additions & 2 deletions contracts/warp-resolver/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use cosmwasm_std::{
use crate::contract::query;
use cosmwasm_schema::cw_serde;
use cosmwasm_std::testing::{mock_info, MockApi, MockQuerier, MockStorage};
use cosmwasm_std::{from_slice, Empty, Querier, QueryRequest, SystemError, SystemResult};
use cosmwasm_std::{from_json, Empty, Querier, QueryRequest, SystemError, SystemResult};

use resolver::variable::{
FnValue, QueryExpr, QueryVariable, StaticVariable, Variable, VariableKind,
Expand Down Expand Up @@ -82,7 +82,7 @@ pub struct WasmMockQuerier {

impl Querier for WasmMockQuerier {
fn raw_query(&self, bin_request: &[u8]) -> SystemResult<ContractResult<Binary>> {
let request: QueryRequest<Empty> = match from_slice(bin_request) {
let request: QueryRequest<Empty> = match from_json(bin_request) {
Ok(v) => v,
Err(e) => {
return SystemResult::Err(SystemError::InvalidRequest {
Expand Down

0 comments on commit 4dbdc21

Please sign in to comment.