Skip to content

Commit

Permalink
fix: Allow deprecated InterfaceApi in generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
jawoznia committed Aug 22, 2024
1 parent cc1728e commit acc22e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/interfaces/custom-and-generic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ pub trait CustomAndGeneric {
}

#[cfg(test)]
#[allow(deprecated)]
mod tests {
use cosmwasm_std::testing::mock_dependencies;
use cosmwasm_std::{Addr, CosmosMsg, Empty, QuerierWrapper};
Expand Down
1 change: 1 addition & 0 deletions examples/interfaces/generic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ pub trait Generic {
}

#[cfg(test)]
#[allow(deprecated)]
mod tests {
use cosmwasm_std::testing::mock_dependencies;
use cosmwasm_std::{Addr, CosmosMsg, Empty, QuerierWrapper};
Expand Down
1 change: 1 addition & 0 deletions sylvia-derive/src/interface/communication/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ impl<'a> Api<'a> {
#phantom
}

#[allow(deprecated)]
impl < #(#generics,)* > #sylvia ::types::InterfaceApi for Api < #(#generics,)* > #where_clause {
type Exec = ExecMsg < #(#exec_generics,)* >;
type Query = QueryMsg < #(#query_generics,)* >;
Expand Down

0 comments on commit acc22e8

Please sign in to comment.