Account.nonce is now AccountNonce which is uint64 from UInt256

This commit is contained in:
coffeepots 2018-08-31 18:36:57 +01:00 committed by zah
parent abef1f11ba
commit dbc35fb198
1 changed files with 2 additions and 3 deletions

View File

@ -10,14 +10,13 @@ import
type
Account* = object
nonce*: UInt256
nonce*: AccountNonce
balance*: UInt256
storageRoot*: Hash256
codeHash*: Hash256
proc newAccount*(nonce: UInt256 = 0.u256, balance: UInt256 = 0.u256): Account =
proc newAccount*(nonce: AccountNonce = 0, balance: UInt256 = 0.u256): Account =
result.nonce = nonce
result.balance = balance
result.storageRoot = BLANK_ROOT_HASH
result.codeHash = EMPTY_SHA3