mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
Filter calls in utility (#6131)
* Filter calls. * Remove old proxy code * Docs and repot * Update frame/utility/src/tests.rs Co-authored-by: Marcio Diaz <marcio.diaz@gmail.com> * fix test * Grumble * Bump runtime version * fix * Attempt general fix Co-authored-by: Marcio Diaz <marcio.diaz@gmail.com> Co-authored-by: NikVolf <nikvolf@gmail.com>
This commit is contained in:
@@ -25,7 +25,7 @@ fn build_spec_works() {
|
||||
let base_path = tempdir().expect("could not create a temp dir");
|
||||
|
||||
let output = Command::new(cargo_bin("substrate"))
|
||||
.args(&["build-spec", "--rc1", "-d"])
|
||||
.args(&["build-spec", "--dev", "-d"])
|
||||
.arg(base_path.path())
|
||||
.output()
|
||||
.unwrap();
|
||||
|
||||
@@ -31,7 +31,7 @@ fn check_block_works() {
|
||||
common::run_dev_node_for_a_while(base_path.path());
|
||||
|
||||
let status = Command::new(cargo_bin("substrate"))
|
||||
.args(&["check-block", "--rc1", "--pruning", "archive", "-d"])
|
||||
.args(&["check-block", "--dev", "--pruning", "archive", "-d"])
|
||||
.arg(base_path.path())
|
||||
.arg("1")
|
||||
.status()
|
||||
|
||||
@@ -51,7 +51,7 @@ pub fn run_dev_node_for_a_while(base_path: &Path) {
|
||||
let mut cmd = Command::new(cargo_bin("substrate"));
|
||||
|
||||
let mut cmd = cmd
|
||||
.args(&["--rc1"])
|
||||
.args(&["--dev"])
|
||||
.arg("-d")
|
||||
.arg(base_path)
|
||||
.spawn()
|
||||
|
||||
@@ -82,8 +82,8 @@ impl<'a> ExportImportRevertExecutor<'a> {
|
||||
let sub_command_str = sub_command.to_string();
|
||||
// Adding "--binary" if need be.
|
||||
let arguments: Vec<&str> = match format_opt {
|
||||
FormatOpt::Binary => vec![&sub_command_str, "--rc1", "--pruning", "archive", "--binary", "-d"],
|
||||
FormatOpt::Json => vec![&sub_command_str, "--rc1", "--pruning", "archive", "-d"],
|
||||
FormatOpt::Binary => vec![&sub_command_str, "--dev", "--pruning", "archive", "--binary", "-d"],
|
||||
FormatOpt::Json => vec![&sub_command_str, "--dev", "--pruning", "archive", "-d"],
|
||||
};
|
||||
|
||||
let tmp: TempDir;
|
||||
@@ -136,7 +136,7 @@ impl<'a> ExportImportRevertExecutor<'a> {
|
||||
let _ = fs::remove_dir_all(&self.db_path);
|
||||
}
|
||||
|
||||
/// Runs the `import-blocks` command, asserting that an error was found or
|
||||
/// Runs the `import-blocks` command, asserting that an error was found or
|
||||
/// not depending on `expected_to_fail`.
|
||||
fn run_import(&mut self, fmt_opt: FormatOpt, expected_to_fail: bool) {
|
||||
let log = self.run_block_command(SubCommand::ImportBlocks, fmt_opt, expected_to_fail);
|
||||
@@ -166,7 +166,7 @@ impl<'a> ExportImportRevertExecutor<'a> {
|
||||
/// Runs the `revert` command.
|
||||
fn run_revert(&self) {
|
||||
let output = Command::new(cargo_bin("substrate"))
|
||||
.args(&["revert", "--rc1", "--pruning", "archive", "-d"])
|
||||
.args(&["revert", "--dev", "--pruning", "archive", "-d"])
|
||||
.arg(&self.base_path.path())
|
||||
.output()
|
||||
.unwrap();
|
||||
|
||||
@@ -31,7 +31,7 @@ fn inspect_works() {
|
||||
common::run_dev_node_for_a_while(base_path.path());
|
||||
|
||||
let status = Command::new(cargo_bin("substrate"))
|
||||
.args(&["inspect", "--rc1", "--pruning", "archive", "-d"])
|
||||
.args(&["inspect", "--dev", "--pruning", "archive", "-d"])
|
||||
.arg(base_path.path())
|
||||
.args(&["block", "1"])
|
||||
.status()
|
||||
|
||||
@@ -30,7 +30,7 @@ fn purge_chain_works() {
|
||||
common::run_dev_node_for_a_while(base_path.path());
|
||||
|
||||
let status = Command::new(cargo_bin("substrate"))
|
||||
.args(&["purge-chain", "--rc1", "-d"])
|
||||
.args(&["purge-chain", "--dev", "-d"])
|
||||
.arg(base_path.path())
|
||||
.arg("-y")
|
||||
.status()
|
||||
|
||||
@@ -31,7 +31,7 @@ fn running_the_node_works_and_can_be_interrupted() {
|
||||
fn run_command_and_kill(signal: Signal) {
|
||||
let base_path = tempdir().expect("could not create a temp dir");
|
||||
let mut cmd = Command::new(cargo_bin("substrate"))
|
||||
.args(&["--rc1", "-d"])
|
||||
.args(&["--dev", "-d"])
|
||||
.arg(base_path.path())
|
||||
.spawn()
|
||||
.unwrap();
|
||||
|
||||
Reference in New Issue
Block a user