Skip to content

Commit

Permalink
fix: force offset time to be int (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa authored Aug 29, 2024
1 parent a863cfb commit 74b6417
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 59 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/build-push.yml

This file was deleted.

20 changes: 10 additions & 10 deletions src/l2.star
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,17 @@ def launch_l2(

def get_network_fork_activation(network_params):
env_vars = {}
env_vars["FJORD_TIME_OFFSET"] = "0x" + "%x" % network_params.fjord_time_offset
if network_params.granite_time_offset:
env_vars["GRANITE_TIME_OFFSET"] = (
"0x" + "%x" % network_params.granite_time_offset
env_vars["FJORD_TIME_OFFSET"] = "0x" + "%x" % int(network_params.fjord_time_offset)
if network_params.granite_time_offset != None:
env_vars["GRANITE_TIME_OFFSET"] = "0x" + "%x" % int(
network_params.granite_time_offset
)
if network_params.holocene_time_offset:
env_vars["HOLOCENE_TIME_OFFSET"] = (
"0x" + "%x" % network_params.holocene_time_offset
if network_params.holocene_time_offset != None:
env_vars["HOLOCENE_TIME_OFFSET"] = "0x" + "%x" % int(
network_params.holocene_time_offset
)
if network_params.interop_time_offset:
env_vars["INTEROP_TIME_OFFSET"] = (
"0x" + "%x" % network_params.interop_time_offset
if network_params.interop_time_offset != None:
env_vars["INTEROP_TIME_OFFSET"] = "0x" + "%x" % int(
network_params.interop_time_offset
)
return env_vars
1 change: 0 additions & 1 deletion src/package_io/sanity_check.star
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def validate_params(plan, input_args, category, allowed_params):


def sanity_check(plan, input_args):

if type(input_args) == "list":
return "Cant bother with your input, you shall pass"

Expand Down

0 comments on commit 74b6417

Please sign in to comment.