Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Dec 19, 2023
1 parent a51463a commit b6a1e4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/std/src/query/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// needed because the derive macros on QueryRequest use the deprecated `Stargate` variant
#![allow(deprecated)]

use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

Expand Down
1 change: 1 addition & 0 deletions packages/std/src/testing/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ impl<C: CustomQuery + DeserializeOwned> MockQuerier<C> {
}
QueryRequest::Wasm(msg) => self.wasm.query(msg),
#[cfg(feature = "stargate")]
#[allow(deprecated)]
QueryRequest::Stargate { .. } => SystemResult::Err(SystemError::UnsupportedRequest {
kind: "Stargate".to_string(),
}),
Expand Down

0 comments on commit b6a1e4b

Please sign in to comment.