diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml deleted file mode 100644 index e7bcd500..00000000 --- a/.github/workflows/build-push.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: Build optimism-contract-deployer -on: - workflow_dispatch: - -jobs: - build-push: - name: build-push - runs-on: ubuntu-latest - steps: - - name: Checkout this repo - uses: actions/checkout@v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - name: Set up Docker Context for Buildx - shell: bash - id: buildx-context - run: | - docker context create builders - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - with: - endpoint: builders - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - images: ethpandaops/optimism-contract-deployer - flavor: latest=true - tags: | - type=ref,event=branch - type=ref,event=pr - type=semver,pattern={{version}} - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - name: docker-build-push - id: docker_build - uses: docker/build-push-action@v5 - with: - context: . - file: Dockerfile - tags: ${{ steps.meta.outputs.tags }} - push: true - platforms: linux/amd64,linux/arm64 - - name: Image digest - run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/src/l2.star b/src/l2.star index 058236ca..f9bca163 100644 --- a/src/l2.star +++ b/src/l2.star @@ -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 diff --git a/src/package_io/sanity_check.star b/src/package_io/sanity_check.star index e9388638..00e48cad 100644 --- a/src/package_io/sanity_check.star +++ b/src/package_io/sanity_check.star @@ -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"