Skip to content

Commit

Permalink
fix: parse input (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoporoli authored Sep 18, 2023
1 parent 073135d commit a787b38
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/package_io/parse_input.star
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
FLASHBOTS_MEV_BOOST_PORT = 18550
MEV_BOOST_SERVICE_NAME_PREFIX = "mev-boost-"

ATTR_TO_BE_SKIPPED_AT_ROOT = ("network_params", "participants", "mev_params")

package_io_constants = import_module("github.com/kurtosis-tech/eth-network-package/package_io/constants.star")
package_io_parser = import_module("github.com/kurtosis-tech/eth-network-package/package_io/input_parser.star")

Expand All @@ -17,8 +19,11 @@ def parse_input(plan, input_args):

for attr in input_args:
value = input_args[attr]
# if its inserted we use the value inserted
if attr not in ATTR_TO_BE_SKIPPED_AT_ROOT and attr in input_args:
result[attr] = value
# custom eth2 attributes config
if attr == "mev_params":
elif attr == "mev_params":
for sub_attr in input_args["mev_params"]:
sub_value = input_args["mev_params"][sub_attr]
result["mev_params"][sub_attr] = sub_value
Expand Down

0 comments on commit a787b38

Please sign in to comment.