Skip to content

Commit

Permalink
Merge pull request #6 from gitcoindev/test-coverage
Browse files Browse the repository at this point in the history
feat: add dummy change
  • Loading branch information
gitcoindev authored Oct 25, 2023
2 parents f870e14 + cb12e3e commit fbf4ad7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/coverage-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Checkout code in PR branch
uses: actions/checkout@v3
with:
submodules: recursive
submodules: true

- name: Setup Foundry
uses: foundry-rs/foundry-toolchain@v1
Expand All @@ -33,11 +33,12 @@ jobs:
working-directory: packages/contracts
run: |
# generates lcov.info
forge install
forge build && forge coverage --report lcov
# Foundry uses relative paths but Hardhat uses absolute paths.
# Convert absolute paths to relative paths for consistency.
# sed -i -e 's/\/.*solidity.//g' lcov.info
sed -i -e 's/\/.*solidity.//g' lcov.info
# Merge lcov files
lcov \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ library LibBondingCurve {
require(_baseY > 0, "must valid baseY");

bondingCurveStorage().connectorWeight = _connectorWeight;
_baseY += 1;
bondingCurveStorage().baseY = _baseY;
emit ParamsSet(_connectorWeight, _baseY);
}
Expand Down

0 comments on commit fbf4ad7

Please sign in to comment.