mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 10:31:04 +00:00
Public extrinsic apply doesn't panic (#178)
* Merge remote-tracking branch 'origin/master' into gav-xts-dont-panic * Update wasm. * consensus, session and staking all panic-safe. * Democracy doesn't panic in apply. * Fix tests. * Extra helper macro, council depanicked. * Fix one test. * Fix up all council tests. No panics! * Council voting depanicked. * utilise hygene
This commit is contained in:
@@ -65,6 +65,6 @@ args:
|
||||
- chain:
|
||||
long: chain
|
||||
value_name: CHAIN_SPEC
|
||||
help: Specify the chain specification (one of dev, local or poc-1)
|
||||
help: Specify the chain specification (one of dev, local or poc-2)
|
||||
takes_value: true
|
||||
subcommands:
|
||||
|
||||
@@ -110,7 +110,7 @@ impl substrate_rpc::system::SystemApi for Configuration {
|
||||
Ok(match self.0.chain_spec {
|
||||
ChainSpec::Development => "dev",
|
||||
ChainSpec::LocalTestnet => "local",
|
||||
ChainSpec::PoC1Testnet => "poc-1",
|
||||
ChainSpec::PoC2Testnet => "poc-2",
|
||||
}.into())
|
||||
}
|
||||
}
|
||||
@@ -174,14 +174,14 @@ pub fn run<I, T>(args: I) -> error::Result<()> where
|
||||
match matches.value_of("chain") {
|
||||
Some("dev") => config.chain_spec = ChainSpec::Development,
|
||||
Some("local") => config.chain_spec = ChainSpec::LocalTestnet,
|
||||
Some("poc-1") => config.chain_spec = ChainSpec::PoC1Testnet,
|
||||
Some("poc-2") => config.chain_spec = ChainSpec::PoC2Testnet,
|
||||
None => (),
|
||||
Some(unknown) => panic!("Invalid chain name: {}", unknown),
|
||||
}
|
||||
info!("Chain specification: {}", match config.chain_spec {
|
||||
ChainSpec::Development => "Development",
|
||||
ChainSpec::LocalTestnet => "Local Testnet",
|
||||
ChainSpec::PoC1Testnet => "PoC-1 Testnet",
|
||||
ChainSpec::PoC2Testnet => "PoC-2 Testnet",
|
||||
});
|
||||
|
||||
config.roles = role;
|
||||
|
||||
Reference in New Issue
Block a user