Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
bump API versions of {Beefy,Mmr}Api
Browse files Browse the repository at this point in the history
  • Loading branch information
Lederstrumpf committed Mar 2, 2023
1 parent d1d67cd commit 4ba35be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions primitives/consensus/beefy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ impl OpaqueKeyOwnershipProof {

sp_api::decl_runtime_apis! {
/// API necessary for BEEFY voters.
#[api_version(2)]
pub trait BeefyApi
{
/// Return the block number where BEEFY consensus is enabled/started
Expand Down
1 change: 1 addition & 0 deletions primitives/merkle-mountain-range/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ impl Error {

sp_api::decl_runtime_apis! {
/// API to interact with MMR pallet.
#[api_version(2)]
pub trait MmrApi<Hash: codec::Codec, BlockNumber: codec::Codec> {
/// Return the on-chain MMR root hash.
fn mmr_root() -> Result<Hash, Error>;
Expand Down

0 comments on commit 4ba35be

Please sign in to comment.