mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-01 03:07:56 +00:00
fix bug for revert (#1341)
* must pass sub_matches to function, so that could get `<num>` in revert * revert should del current best index block, not prev block
This commit is contained in:
@@ -422,7 +422,7 @@ where
|
||||
} else if let Some(sub_matches) = matches.subcommand_matches("revert") {
|
||||
revert_chain::<F>(
|
||||
get_db_path_for_subcommand(matches, sub_matches)?,
|
||||
matches,
|
||||
sub_matches,
|
||||
spec
|
||||
)?;
|
||||
return Ok(Action::ExecutedInternally);
|
||||
|
||||
Reference in New Issue
Block a user