rustfmt generate-bags and fix typos

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch 2025-07-29 14:27:08 +03:00
parent 2ad43a56ba
commit c933ed3809
Signed by: str3tch
GPG Key ID: 84F3190747EE79AA
2 changed files with 10 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "ghost-voter-bags"
version = "0.3.6"
version = "0.3.7"
description = "CLI to generate voter bags for Ghost runtimes"
license.workspace = true
authors.workspace = true

View File

@ -4,10 +4,10 @@
//! again. It can be resued to generate a wholly different quantity of bags,
//! or if the existential deposit changes, etc.
use casper_runtime::Runtime as CasperRuntime;
use clap::{Parser, ValueEnum};
use generate_bags::generate_thresholds;
use std::path::{Path, PathBuf};
use casper_runtime::Runtime as CasperRuntime;
#[derive(Clone, Debug, ValueEnum)]
#[value(rename_all = "kebab-case")]
@ -50,6 +50,12 @@ struct Opt {
}
fn main() -> Result<(), std::io::Error> {
let Opt { n_bags, output, runtime, total_issuance, minimum_balance } = Opt::parse();
let Opt {
n_bags,
output,
runtime,
total_issuance,
minimum_balance,
} = Opt::parse();
runtime.generate_thresholds_fn()(n_bags, &output, total_issuance, minimum_balance)
}