Skip to content

Commit

Permalink
Merge pull request #202 from subspace/fix-genesis-hash
Browse files Browse the repository at this point in the history
Fix genesis hash
  • Loading branch information
nazar-pc authored May 24, 2024
2 parents 341afec + b8dd53b commit 924eac6
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 924eac6

Please sign in to comment.