Skip to content

Commit

Permalink
chore: lint contract and fix workflow (bnb-chain#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 authored Apr 8, 2024
1 parent 2dbebb5 commit af4c147
Show file tree
Hide file tree
Showing 38 changed files with 5,931 additions and 5,640 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ on:
branches:
- master
- develop
- bc-fusion
pull_request:
branches:
- master
- develop
- bc-fusion
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
Expand All @@ -31,7 +29,7 @@ jobs:
${{ runner.os }}-yarn-
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
uses: foundry-rs/foundry-toolchain@v1.2.0

- name: Install Project Dependencies
run: |
Expand All @@ -46,14 +44,9 @@ jobs:
run: |
forge build
- name: Start Local Chain
run: |
npm install pm2 -g
pm2 start --name local-chain "anvil -f https://bsc-dataseed1.ninicoin.io"
sleep 5
env:
PORT: 8545
- name: Set RPC Env
run: echo "RPC_BSC=https://bsc-dataseed.bnbchain.org" >> $GITHUB_ENV

- name: Unit Test
run: |
forge test --rpc-url http://127.0.0.1:8545
forge test
2,501 changes: 1,290 additions & 1,211 deletions contracts/BSCValidatorSet.sol

Large diffs are not rendered by default.

Loading

0 comments on commit af4c147

Please sign in to comment.