Skip to content

Commit

Permalink
Fix genesis hash
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed May 24, 2024
1 parent 341afec commit b8dd53b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "space-acres"
description = "Space Acres is an opinionated GUI application for farming on Subspace Network"
license = "0BSD"
version = "0.1.20"
version = "0.1.21"
authors = ["Nazar Mokrynskyi <[email protected]>"]
repository = "https://github.com/subspace/space-acres"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion src/backend/farmer/direct_node_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ where
pub fn new(config: NodeClientConfig<Client>) -> Result<Self, ApiError> {
let info = config.client.info();
let best_hash = info.best_hash;
let genesis_hash = BlockHash::try_from(best_hash.as_ref().to_vec())
let genesis_hash = BlockHash::try_from(info.genesis_hash.as_ref())
.expect("Genesis hash must always be convertable into BlockHash; qed");
let runtime_api = config.client.runtime_api();
let chain_constants = runtime_api.chain_constants(best_hash)?;
Expand Down

0 comments on commit b8dd53b

Please sign in to comment.