From 4ba35bec7b899c8554ff1f161972dbf97420dd47 Mon Sep 17 00:00:00 2001 From: Robert Hambrock Date: Thu, 2 Mar 2023 09:41:34 +0100 Subject: [PATCH] bump API versions of {Beefy,Mmr}Api --- primitives/consensus/beefy/src/lib.rs | 1 + primitives/merkle-mountain-range/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/primitives/consensus/beefy/src/lib.rs b/primitives/consensus/beefy/src/lib.rs index 2e3ec2ef801c5..cc5d1e8cb9a3b 100644 --- a/primitives/consensus/beefy/src/lib.rs +++ b/primitives/consensus/beefy/src/lib.rs @@ -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 diff --git a/primitives/merkle-mountain-range/src/lib.rs b/primitives/merkle-mountain-range/src/lib.rs index 1c319c4e3934c..436755c032908 100644 --- a/primitives/merkle-mountain-range/src/lib.rs +++ b/primitives/merkle-mountain-range/src/lib.rs @@ -422,6 +422,7 @@ impl Error { sp_api::decl_runtime_apis! { /// API to interact with MMR pallet. + #[api_version(2)] pub trait MmrApi { /// Return the on-chain MMR root hash. fn mmr_root() -> Result;