1
2
3
4
5
6
7
8
9
10
11
12
use jormungandr_lib::{crypto::hash::Hash, interfaces::SettingsDto};
use std::str::FromStr;

pub trait SettingsDtoExtension {
    fn genesis_block_hash(&self) -> Hash;
}

impl SettingsDtoExtension for SettingsDto {
    fn genesis_block_hash(&self) -> Hash {
        Hash::from_str(&self.block0_hash).unwrap()
    }
}