Skip to content

Commit bbc8802

Browse files
committed
Eth256 -> Core256, Eth520 -> Core520
1 parent 4176b54 commit bbc8802

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

json/src/spec/genesis.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ mod tests {
4848
use std::str::FromStr;
4949

5050
use ckey::Address as CoreAddress;
51-
use primitives::{H256 as Eth256, H520 as Eth520, U256};
51+
use primitives::{H256 as Core256, H520 as Core520, U256};
5252
use serde_json;
5353

5454
use super::super::super::bytes::Bytes;
@@ -80,18 +80,18 @@ mod tests {
8080
assert_eq!(deserialized, Genesis {
8181
seal: Seal::Tendermint(TendermintSeal {
8282
round: Uint(U256::from(0x0)),
83-
proposal: H520(Eth520::from("0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")),
83+
proposal: H520(Core520::from("0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")),
8484
precommits: vec![
85-
H520(Eth520::from("0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")),
85+
H520(Core520::from("0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")),
8686
]
8787
}),
8888
score: Uint(U256::from(0x400000000u64)),
8989
author: Some(Address(CoreAddress::from("0x1000000000000000000000000000000000000001"))),
9090
timestamp: Some(Uint(U256::from(0x07))),
91-
parent_hash: Some(H256(Eth256::from("0x9000000000000000000000000000000000000000000000000000000000000000"))),
91+
parent_hash: Some(H256(Core256::from("0x9000000000000000000000000000000000000000000000000000000000000000"))),
9292
parcels_root: None,
9393
invoices_root: None,
94-
state_root: Some(H256(Eth256::from("0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544"))),
94+
state_root: Some(H256(Core256::from("0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544"))),
9595
extra_data: Some(Bytes::from_str("0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa").unwrap()),
9696
});
9797
}

json/src/spec/seal.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub enum Seal {
4141

4242
#[cfg(test)]
4343
mod tests {
44-
use primitives::{H520 as Eth520, U256};
44+
use primitives::{H520 as Core520, U256};
4545
use serde_json;
4646

4747
use super::super::super::bytes::Bytes;
@@ -78,8 +78,8 @@ mod tests {
7878
// [1]
7979
assert_eq!(deserialized[1], Seal::Tendermint(TendermintSeal {
8080
round: Uint(U256::from(0x3)),
81-
proposal: H520(Eth520::from("0x3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003")),
82-
precommits: vec![H520(Eth520::from("0x4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004"))]
81+
proposal: H520(Core520::from("0x3000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003")),
82+
precommits: vec![H520(Core520::from("0x4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004"))]
8383
}));
8484
}
8585
}

0 commit comments

Comments
 (0)