✨ Feature: Replace hardhatExec with Hardcoded Bytecode Deployment in testUtils #100
Open
1 task done
Labels
enhancement
New feature or request
Feature or Improvement Description
Remove the hardhatExec functionality from the testUtils file and replace it with hardcoded bytecode deployment using
setCode
on the Anvil instance. Add K1_VALIDATOR_FACTORY_BYTECODE, K1_VALIDATOR_BYTECODE, and NEXUS_IMPLEMENTATION_BYTECODE to callData.ts.Benefits & Outcomes
Implementation Ideas
Remove hardhatExec imports and related functions from testUtils.ts
Add new constants to callData.ts:
(Fetch these bytecodes from the Base Sepolia explorer)
Update the
initDeployments
function in testUtils.ts:setCode
calls using the new bytecode constants:Update any other functions in testUtils.ts that relied on hardhatExec
Modify the
toConfiguredAnvil
function to remove any hardhat-specific configurationsUpdate unit tests to reflect the new deployment method
Verify that all tests pass with the new bytecode deployment method
Update documentation to reflect the changes in the testing setup
Remove any remaining hardhat dependencies that are no longer needed
References
Any References?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: