fix consensus-sim genesis parser

This commit is contained in:
jangko 2023-07-25 12:00:59 +07:00
parent 18587c3abe
commit 7229bca033
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9
1 changed files with 3 additions and 1 deletions

View File

@ -16,7 +16,7 @@ import
type
Blob = seq[byte]
ChainData* = object
params*: NetworkParams
lastBlockHash*: string
@ -45,6 +45,8 @@ proc parseGenesis(n: JsonNode): Genesis =
for x in genFields:
genesis[x] = gen[x]
optionalField("baseFeePerGas", genesis, gen)
optionalField("dataGasUsed", genesis, gen)
optionalField("excessDataGas", genesis, gen)
genesis["alloc"] = n["pre"]
parseGenesis($genesis)