use normal

This commit is contained in:
Dimitar Manov 2025-06-11 14:02:04 +03:00
parent d2d60c2b48
commit 9a42aeb8de
2 changed files with 7 additions and 7 deletions

View file

@ -77,10 +77,14 @@ jobs:
tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ env.ENVIRONMENT }}-contracts-latest,${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ env.ENVIRONMENT }}-contracts-${{ steps.autotag.outputs.tag }} tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ env.ENVIRONMENT }}-contracts-latest,${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ env.ENVIRONMENT }}-contracts-${{ steps.autotag.outputs.tag }}
labels: ${{ steps.metadata.outputs.labels }} labels: ${{ steps.metadata.outputs.labels }}
- name: Stop Geth Devnet
run: |
docker compose down
- name: Start Contracts Geth Devnet - name: Start Contracts Geth Devnet
run: | run: |
docker run -d \ docker run -d \
-p 8546:8545 \ -p 8545:8545 \
-p 30303:30303 \ -p 30303:30303 \
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ env.ENVIRONMENT }}-contracts-latest \ ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ env.ENVIRONMENT }}-contracts-latest \
--dev \ --dev \
@ -91,8 +95,8 @@ jobs:
- name: Wait for Contracts Geth JSON-RPC - name: Wait for Contracts Geth JSON-RPC
run: | run: |
echo "Waiting for Contracts Geth to be ready..." echo "Waiting for Contracts Geth to be ready..."
until curl -s http://localhost:8546; do sleep 1; done until curl -s http://localhost:8545; do sleep 1; done
- name: Test Contracts - name: Test Contracts
working-directory: ./hardhat working-directory: ./hardhat
run: npx hardhat test test/Lock.ts --network localcontracts run: npx hardhat test test/Lock.ts --network local

View file

@ -8,10 +8,6 @@ const config: HardhatUserConfig = {
url: "http://127.0.0.1:8545", url: "http://127.0.0.1:8545",
chainId: 1337 chainId: 1337
}, },
localcontracts: {
url: "http://127.0.0.1:8546",
chainId: 1337
},
node: { node: {
url: "http:127.0.0.1:8545", url: "http:127.0.0.1:8545",
chainId: 31337 chainId: 31337