mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-08 20:38:04 +00:00
Merge branch 'master' into tadeohepperle/subxt-metadata-no-std
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -21,7 +21,7 @@ pub struct SubstrateNodeBuilder {
|
||||
|
||||
impl Default for SubstrateNodeBuilder {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
SubstrateNodeBuilder::new()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,11 +29,23 @@ impl SubstrateNodeBuilder {
|
||||
/// Configure a new Substrate node.
|
||||
pub fn new() -> Self {
|
||||
SubstrateNodeBuilder {
|
||||
binary_paths: vec!["substrate-node".into(), "substrate".into()],
|
||||
binary_paths: vec![],
|
||||
custom_flags: Default::default(),
|
||||
}
|
||||
}
|
||||
|
||||
/// Provide "substrate-node" and "substrate" as binary paths
|
||||
pub fn substrate(&mut self) -> &mut Self {
|
||||
self.binary_paths = vec!["substrate-node".into(), "substrate".into()];
|
||||
self
|
||||
}
|
||||
|
||||
/// Provide "polkadot" as binary path.
|
||||
pub fn polkadot(&mut self) -> &mut Self {
|
||||
self.binary_paths = vec!["polkadot".into()];
|
||||
self
|
||||
}
|
||||
|
||||
/// Set the path to the `substrate` binary; defaults to "substrate-node"
|
||||
/// or "substrate".
|
||||
pub fn binary_paths<Paths, S>(&mut self, paths: Paths) -> &mut Self
|
||||
|
||||
Reference in New Issue
Block a user