-
Notifications
You must be signed in to change notification settings - Fork 346
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
Use structs to remove being forced to compile via ir #456
Comments
Actually... digging into this more. Seems like the issue goes a bit deeper than I thought. The way this repo compiles the contracts is... a bit odd. Why?We have javascript magic like this: uint160 constant SYSTEM_CONTRACTS_OFFSET = {{SYSTEM_CONTRACTS_OFFSET}}; // 2^15 Which it looks like is fixed when we compile with the precompiles, but it prevents our foundry friends from having a good time, and sort of vendor locks people into Hardhat. The Or, you could have So... we have a few options:
I'm leaning towards number 2, but not sure how others feel |
We actually used to have this repo as a mirror of the contracts that can be easily imported. While it is somewhat outdated, we generally ensure backward compatibility, so if the functionality provided by that repo is enough for you, you can use it temporarily. We will soon update it though |
Still not fixed. @StanislavBreadless is it still safe to use the repo you mentioned? |
As of today, using any of these contracts as a package results in the following issue.
To get around this, you can instead use structs instead of so many variables.
You can only get this error if you try to compile the contracts using foundry, like so:
The text was updated successfully, but these errors were encountered: