mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-20 01:26:08 +00:00
chainSpec: Stabilize chainSpec methods to V1 (#1206)
* chainSpec: Stabilize chainSpec methods to V1 Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> * chainSpec/api: Remove unstable documentation Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> --------- Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io> Co-authored-by: James Wilson <james@jsdw.me>
This commit is contained in:
1 parent
6bb9ad4b1a
commit
62f0a729cf
3 files changed
+12
-24
No files matched your search
@@ -46,15 +46,15 @@ impl ChainSpec {
|
||||
}
|
||||
|
||||
impl ChainSpecApiServer for ChainSpec {
|
||||
fn chain_spec_unstable_chain_name(&self) -> RpcResult<String> {
|
||||
fn chain_spec_v1_chain_name(&self) -> RpcResult<String> {
|
||||
Ok(self.name.clone())
|
||||
}
|
||||
|
||||
fn chain_spec_unstable_genesis_hash(&self) -> RpcResult<String> {
|
||||
fn chain_spec_v1_genesis_hash(&self) -> RpcResult<String> {
|
||||
Ok(self.genesis_hash.clone())
|
||||
}
|
||||
|
||||
fn chain_spec_unstable_properties(&self) -> RpcResult<Properties> {
|
||||
fn chain_spec_v1_properties(&self) -> RpcResult<Properties> {
|
||||
Ok(self.properties.clone())
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user