Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Updates repo to forge and adds two new tests.#13

Open
brianmcmichael wants to merge 7 commits intomasterfrom
forge-upd
Open

Updates repo to forge and adds two new tests.#13
brianmcmichael wants to merge 7 commits intomasterfrom
forge-upd

Conversation

@brianmcmichael
Copy link
Contributor

  • Updates this repo to foundry.

  • Adds two tests that confirm that lerp can be used as a toggle switch for 0>1 and 1>0 system switches.

flatten :; hevm flatten --source-file src/LerpFactory.sol > out/LerpFactory.sol && hevm flatten --source-file src/Lerp.sol > out/Lerp.sol
all :; forge build --use solc:0.6.12 --optimize --optimizer-runs 200
clean :; forge clean
test :; forge test -vvv

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can do test :; forge test --use solc:0.6.12 -vvv to force using the specific compiler version as with dapp.

clean :; forge clean
test :; forge test -vvv
deploy :; make && forge create LerpFactory
flatten :; forge flatten --output out/LerpFactory.flattened.sol src/LerpFactory.sol

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you remove the flattening of Lerp.sol since it's not needed?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants