Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.

Commit 6ffea36

Browse files
authored
Merge pull request #23 from rust-blockchain/sp-comp-166
Companion PR for #166
2 parents 9b60146 + 08d0b4f commit 6ffea36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jsontests/src/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub fn u256_to_h256(u: U256) -> H256 {
1212
pub fn unwrap_to_account(s: &ethjson::spec::Account) -> MemoryAccount {
1313
MemoryAccount {
1414
balance: s.balance.clone().unwrap().into(),
15-
nonce: s.nonce.unwrap().0.as_u64(),
15+
nonce: s.nonce.unwrap().0,
1616
code: s.code.clone().unwrap().into(),
1717
storage: s
1818
.storage
@@ -48,7 +48,7 @@ pub fn unwrap_to_state(a: &ethjson::spec::State) -> BTreeMap<H160, MemoryAccount
4848
#[derive(Debug, Clone, PartialEq, Eq)]
4949
pub struct TrieAccount {
5050
/// Nonce of the account.
51-
pub nonce: u64,
51+
pub nonce: U256,
5252
/// Balance of the account.
5353
pub balance: U256,
5454
/// Storage root of the account.

0 commit comments

Comments
 (0)