Skip to content

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sripwoud committed Jun 26, 2024
1 parent b162b78 commit af853a7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ jobs:
coveralls:
runs-on: ubuntu-latest
if: needs.changed-files.outputs.any_changed == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: tests
if: needs.changed-files.outputs.any_changed == 'true' && github.event_name == 'pull_request' && github.ref == 'refs/pull/15/merge'
needs: [changed-files, tests]
steps:
- name: Coveralls
uses: coverallsapp/github-action@v2
Expand Down
2 changes: 2 additions & 0 deletions packages/lazytower/contracts/LazyTowerHashChain.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

// trigger workflow

import {PoseidonT3} from "poseidon-solidity/PoseidonT3.sol";
// CAPACITY = W * (W**0 + W**1 + ... + W**(H - 1)) = W * (W**H - 1) / (W - 1)
// 4 * (4**24 - 1) / (4 - 1) = 375_299_968_947_540;
Expand Down
22 changes: 22 additions & 0 deletions scripts/install-slither.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

set -eo pipefail

# Define an orange color using ANSI escape codes
ORANGE='\033[0;33m' # Using yellow as an approximation for orange
RESET='\033[0m' # Reset color to default

main() {
if command -v pip &>/dev/null; then
if ! command -v slither &> /dev/null;then
pip install slither-analyzer
fi
printf "%s\n" "slither is already installed."
else
printf "%s\n" "${ORANGE}pip is not installed. Please install pip and rerun 'yarn' or './scripts/install-slither.bash'.${RESET}"
fi

echo "Slither has been installed (or was already."
}

main

0 comments on commit af853a7

Please sign in to comment.