-
Notifications
You must be signed in to change notification settings - Fork 0
add k256 precompile to deploy and chain config for litMainnet #48
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
base: master
Are you sure you want to change the base?
Conversation
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.
Pull request overview
This PR adds the k256 precompile configuration to the litMainnet network in the Hardhat config. The change enables support for Arbitrum Stylus contracts on the litMainnet chain by configuring the required precompile contract addresses.
- Adds
stylusContractsForTestsconfiguration block to the litMainnet network - Configures k256 contract address as
0x029bedeacaf6821ce9a6bd7c8ac73350f24a014f - Configures p256 contract address with fallback to environment variable
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| p256: | ||
| process.env.LIT_STYLUS_P256_CONTRACT_ADDRESS || | ||
| '0x0000000000000000000000000000000000000000', |
Copilot
AI
Dec 19, 2025
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.
The p256 contract address is set to the zero address (0x0000000000000000000000000000000000000000), which will cause failures in both tests and deployment scripts. The test validation checks that both stylusContractsForTests.p256 and stylusContractsForTests.k256 are truthy values, and the deploy script throws an error if either address is missing. A valid p256 contract address should be provided instead of using the zero address as a placeholder.
| p256: | |
| process.env.LIT_STYLUS_P256_CONTRACT_ADDRESS || | |
| '0x0000000000000000000000000000000000000000', | |
| p256: process.env.LIT_STYLUS_P256_CONTRACT_ADDRESS, |
|
PASS [ 43.055s] (3/3) lit_node::test toxiproxy::perf_tests::load_with_no_latency |
|
Required when re-deploying Naga-proto |
No description provided.