Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This PR adds support for the Lisk Sepolia testnet in Hardhat configuration. The newly introduced network allows deploying and verifying smart contracts on Lisk's Sepolia blockchain.
Changes:
lisk-sepolia
network configuration tohardhat.config.ts
.lisk-sepolia
under theetherscan.apiKey
configuration using a placeholder key.customChains
configuration to support contract verification for Lisk Sepolia.Deployment and Verification:
The following contracts were successfully deployed on Lisk Sepolia:
Verification Issues and Solution:
While verifying the Roles contract, an issue arose when using the standard Hardhat verification process. The verification failed due to inconsistencies in the default Hardhat plugin.
To resolve this, Forge was used for verification, and the following command successfully verified the contract:
forge verify-contract \ --rpc-url https://rpc.sepolia-api.lisk.com \ --verifier blockscout \ --verifier-url 'https://sepolia-blockscout.lisk.com/api' \ --compiler-version 0.8.21 \ --root packages/evm \ 0x9646fDAD06d3e24444381f44362a3B0eB343D337 \ contracts/Roles.sol:Roles
Verification response:
This issue has been documented to ensure a smooth verification process for future deployments on Lisk Sepolia.
References: