Skip to content

Commit

Permalink
chore: trigger build
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmad committed Jan 28, 2025
1 parent 4e67b2e commit 87f6dee
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/relayer-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,24 @@ jobs:
node-version: 20
cache: "pnpm"

- name: Get changed files
id: get-changed-files
uses: jitterbit/get-changed-files@v1
with:
format: "csv"

- name: Check for changes in 'circuit' folder
id: check_changes
run: |
CHANGED_FILES=${{ steps.get-changed-files.outputs.all }}
if echo "$CHANGED_FILES" | grep -q "\.circom"; then
echo "CHANGED=true" >> $GITHUB_ENV
echo "Circuits have changes."
else
echo "CHANGED=false" >> $GITHUB_ENV
echo "No changes on circuits."
fi
- name: Install dependencies
run: |
sudo apt-get update
Expand All @@ -60,7 +78,20 @@ jobs:
wget -qO ~/rapidsnark/build/prover https://maci-devops-zkeys.s3.ap-northeast-2.amazonaws.com/rapidsnark-linux-amd64-1c137
chmod +x ~/rapidsnark/build/prover
# - name: Download circom Binary v2.1.6
# run: |
# wget -qO ${{ github.workspace }}/circom https://github.com/iden3/circom/releases/download/v2.1.6/circom-linux-amd64
# chmod +x ${{ github.workspace }}/circom
# sudo mv ${{ github.workspace }}/circom /bin/circom

# - name: Compile Circuits And Generate zkeys
# if: ${{ env.CHANGED == 'true' }}
# run: |
# pnpm build:circuits-c -- --outPath ../../apps/relayer/zkeys
# pnpm setup:zkeys -- --outPath ../../apps/relayer/zkeys

- name: Download zkeys
# if: ${{ env.CHANGED == 'false' }}
run: |
pnpm download-zkeys:test:relayer
Expand Down
5 changes: 5 additions & 0 deletions apps/relayer/ts/message/message.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,13 @@ export class MessageGuard implements CanActivate {

const isValid = await pollContract.verifyJoinedPollProof(dto.stateLeafIndex, dto.proof);

// eslint-disable-next-line no-console
console.log("Valid", isValid);

return isValid;
} catch (error) {
// eslint-disable-next-line no-console
console.log("Error", error);
this.logger.error("Activate error: ", error);
return false;
}
Expand Down

0 comments on commit 87f6dee

Please sign in to comment.