Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make polkadot js work with ecdsa #29

Merged
Merged
Changes from all commits
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
16 changes: 14 additions & 2 deletions ownership-chain/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,9 @@ impl_opaque_keys! {
}
}

#[cfg(feature = "try-runtime")]
#[sp_version::runtime_version]
pub const VERSION: RuntimeVersion = RuntimeVersion {
/// Uncomment this to make it work with polkadot-js/apps
/// spec_name: create_runtime_str!("frontier-template"),
spec_name: create_runtime_str!("laos-parachain"),
impl_name: create_runtime_str!("laos-parachain"),
authoring_version: 1,
Expand All @@ -238,6 +237,19 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
state_version: 1,
};

#[cfg(not(feature = "try-runtime"))]
#[sp_version::runtime_version]
pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("frontier-template"),
impl_name: create_runtime_str!("frontier-template"),
authoring_version: 1,
spec_version: 7,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
state_version: 1,
};

/// This determines the average expected block time that we are targeting.
/// Blocks will be produced at a minimum duration defined by `SLOT_DURATION`.
/// `SLOT_DURATION` is picked up by `pallet_timestamp` which is in turn picked
Expand Down