-
Notifications
You must be signed in to change notification settings - Fork 357
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
Compilation Error When Using era-contracts
in Foundry Projects
#802
Comments
Improved understanding of the issue:
|
I was able to fix it on a different branch, will talk about merging this change to main with the others:
|
@kelemeno any updates here? |
Description:
When users attempt to use
era-contracts
into their Foundry projects by running the following command:They encounter a compilation error due to an unresolved placeholder in the
Constants.sol
file:This issue occurs because
SYSTEM_CONTRACTS_OFFSET
is currently a placeholder ({{SYSTEM_CONTRACTS_OFFSET}}
) rather than a resolved constant value.Problematic Line:
The problematic line can be found here in the
era-contracts
repository:lib/era-contracts/system-contracts/contracts/Constants.sol:20
Impact:
This issue leads to friction in the developer experience, as users are unable to compile their projects upon immediate installation. Rather they need to go into
era-contracts
and build first or replace with a constant value. This additional step although may seem negligible is a point of friction.Suggested Solution:
I am unaware of the implications, if any, to replace the placeholder
{{SYSTEM_CONTRACTS_OFFSET}}
with an actual constant value directly in theConstants.sol
file (e.g.0x8000
) but it would be nice not to have to do any additional steps to make use of era-contracts.The text was updated successfully, but these errors were encountered: