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

Companion for substrate#13509: bump API versions of {Beefy,Mmr}Api #6809

Merged
merged 3 commits into from
Mar 3, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions runtime/rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1772,6 +1772,7 @@ sp_api::impl_runtime_apis! {
}
}

#[api_version(2)]
impl beefy_primitives::BeefyApi<Block> for Runtime {
fn beefy_genesis() -> Option<BlockNumber> {
Beefy::genesis_block()
Expand Down Expand Up @@ -1809,6 +1810,7 @@ sp_api::impl_runtime_apis! {
}
}

#[api_version(2)]
impl mmr::MmrApi<Block, Hash, BlockNumber> for Runtime {
fn mmr_root() -> Result<Hash, mmr::Error> {
Ok(Mmr::mmr_root())
Expand Down