Skip to content

Commit

Permalink
bump up Loans API version
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Feb 29, 2024
1 parent 12a3beb commit 24adcea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions runtime/common/src/apis/loans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use sp_std::vec::Vec;

decl_runtime_apis! {
/// Runtime API for the rewards pallet.
#[api_version(2)]
pub trait LoansApi<PoolId, LoanId, Loan, Balance, PriceCollectionInput>
where
PoolId: Codec,
Expand Down
2 changes: 1 addition & 1 deletion runtime/integration-tests/src/generic/cases/loans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use pallet_loans::{
},
};
use runtime_common::{
apis::{runtime_decl_for_loans_api::LoansApiV1, runtime_decl_for_pools_api::PoolsApiV1},
apis::{runtime_decl_for_loans_api::LoansApiV2, runtime_decl_for_pools_api::PoolsApiV1},
oracle::Feeder,
};
use sp_runtime::FixedPointNumber;
Expand Down
2 changes: 1 addition & 1 deletion runtime/integration-tests/src/generic/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ pub trait Runtime:
/// You can extend this bounds to give extra API support
type Api: sp_api::runtime_decl_for_core::CoreV4<Self::Block>
+ sp_block_builder::runtime_decl_for_block_builder::BlockBuilderV6<Self::Block>
+ apis::runtime_decl_for_loans_api::LoansApiV1<
+ apis::runtime_decl_for_loans_api::LoansApiV2<
Self::Block,
PoolId,
LoanId,
Expand Down

0 comments on commit 24adcea

Please sign in to comment.