From e8c326de1e6d3caf1264656453a5ee3e473d4917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joseph-Andr=C3=A9=20Turk?= Date: Wed, 25 Sep 2024 16:20:51 +0200 Subject: [PATCH] chore: fixed publish --- .github/workflows/publish.yml | 2 +- .github/workflows/publishprerelease.yml | 2 +- .gitignore | 1 - gateway/lib/PredeployAddress.sol | 6 ++++++ 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 gateway/lib/PredeployAddress.sol diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3cde6458..67ac3475 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: node-version: 20.x - run: cp .env.example .env - run: npm ci --include=optional - - run: PRIVATE_KEY_GATEWAY_RELAYER=$(grep PRIVATE_KEY_GATEWAY_RELAYER .env.example | cut -d '"' -f 2) & npx hardhat task:computePredeployAddress --private-key "$PRIVATE_KEY_GATEWAY_DEPLOYER" & npm run compile + - run: npm run compile - uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c # v3.1.1 with: token: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/publishprerelease.yml b/.github/workflows/publishprerelease.yml index 383bfbdd..48be785b 100644 --- a/.github/workflows/publishprerelease.yml +++ b/.github/workflows/publishprerelease.yml @@ -16,7 +16,7 @@ jobs: node-version: 20.x - run: cp .env.example .env - run: npm ci --include=optional - - run: PRIVATE_KEY_GATEWAY_RELAYER=$(grep PRIVATE_KEY_GATEWAY_RELAYER .env.example | cut -d '"' -f 2) & npx hardhat task:computePredeployAddress --private-key "$PRIVATE_KEY_GATEWAY_DEPLOYER" & npm run compile + - run: npm run compile - uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c # v3.1.1 with: tag: prerelease diff --git a/.gitignore b/.gitignore index b9b70a29..42e67c43 100644 --- a/.gitignore +++ b/.gitignore @@ -74,7 +74,6 @@ typings/ .env .env.test gateway/.env.gateway -gateway/lib/PredeployAddress.sol # parcel-bundler cache (https://parceljs.org/) .cache diff --git a/gateway/lib/PredeployAddress.sol b/gateway/lib/PredeployAddress.sol new file mode 100644 index 00000000..02a99789 --- /dev/null +++ b/gateway/lib/PredeployAddress.sol @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: BSD-3-Clause-Clear + +pragma solidity ^0.8.24; + +address constant GATEWAY_CONTRACT_PREDEPLOY_ADDRESS = 0xc8c9303Cd7F337fab769686B593B87DC3403E0ce; + \ No newline at end of file