-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bytecode Verification #47
Conversation
Merge conflicts will need to be resolved with the latest changes that were just merged. It would be great to see documentation in FPS so that users can understand how to use this system. Documentation should include instructions for users on how to install FPS and install node modules so that this works. |
Unit tests are failing in CI with error:
|
This is a required behaviour. This error corresponds to test_typeCheckIncorrectArtifact test. Where we are passing incorrect artifact path to TypeChecker, which leads to this typescript error while encoding. So we want this error. |
TYPE_CHECK_ADDRESSES_PATH=addresses/TypeCheckAddresses.json | ||
ADDRESSES_PATH=addresses/Addresses.json | ||
ARTIFACT_PATH=out/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing lib path here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A user who has installed fps and is type checking his contracts doesn't need to think about lib path. We have this code vm.envOr("LIB_PATH", string("lib/forge-proposal-simulator/"));
in script so lib path will be set by default. I have added this LIB_PATH
env so that this script can also be run from the fps repo by setting LIB_PATH
as ""
just like we do in test.
``` | ||
TYPE_CHECK_ADDRESSES_PATH=addresses/TypeCheckAddresses.json | ||
ADDRESSES_PATH=addresses/Addresses.json | ||
ARTIFACT_PATH=out/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing LIB_PATH
import {Strings} from "@openzeppelin/utils/Strings.sol"; | ||
import {Test} from "@forge-std/Test.sol"; | ||
import "@forge-std/console.sol"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add example of how to run from CLI from within FPS
TYPE_CHECK_ADDRESSES_PATH=addresses/TypeCheckAddresses.json ADDRESSES_PATH=addresses/Addresses.json ARTIFACT_PATH=out/ LIB_PATH= forge script script/TypeCheck.s.sol:TypeCheck --ffi --fork-url sepolia
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done here ddea628
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
https://trello.com/c/D8IpxaUI/24-fps-bytecode-verification