update mapper.jq in hive_integration/nimbus

this changes is required due to recent #654.
custom genesis and chain config parser are fixed
and the genesis fields are grouped into "genesis"
field, similar with chain config fields,
they are grouped in "config" field.
This commit is contained in:
jangko 2021-05-13 18:03:57 +07:00
parent f2491e6307
commit 911bc0b1c3
No known key found for this signature in database
GPG Key ID: 31702AE10541E6B9

View File

@ -38,7 +38,18 @@ def to_bool:
;
# Replace config in input.
. + {
{
"genesis": {
"coinbase" : .coinbase,
"difficulty" : .difficulty,
"extraData" : .extraData,
"gasLimit" : .gasLimit,
"mixHash" : .mixHash,
"nonce" : .nonce,
"parentHash" : .parentHash,
"timestamp" : .timestamp,
"alloc" : .alloc
}|remove_empty,
"config": {
"chainId": env.HIVE_CHAIN_ID|to_int,
"homesteadBlock": env.HIVE_FORK_HOMESTEAD|to_int,