Skip to content

Commit

Permalink
fix(gcli): Use vara runtime ss58 prefix by default (#3321)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikVolf authored Sep 21, 2023
1 parent 6c64798 commit cd25480
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions gcli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ gear-lazy-pages-common = { workspace = true, features = [ "std" ] }
reqwest = { workspace = true, default-features = false, features = [ "json", "rustls-tls" ] }
etc.workspace = true
sp-io = { workspace = true, features = [ "std" ] }
sp-core = { workspace = true, features = [ "std" ] }
vara-runtime = { workspace = true, features = [ "std" ] }

[dev-dependencies]
rand.workspace = true
Expand Down
2 changes: 2 additions & 0 deletions gcli/bin/gcli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ use color_eyre::eyre::Result;
async fn main() -> Result<()> {
color_eyre::install()?;

sp_core::crypto::set_default_ss58_version(vara_runtime::SS58Prefix::get().try_into().unwrap());

if let Err(e) = gcli::cmd::Opt::run().await {
log::error!("{}", e);
}
Expand Down

0 comments on commit cd25480

Please sign in to comment.