webb-tools / eigensdk-rs

Eigenlayer SDK for building AVS
https://tangle.tools
Apache License 2.0
4 stars 0 forks source link

[BUG] Unable to Successfully Run Testnet With EigenLayer Contracts #1

Closed Tjemmmic closed 1 month ago

Tjemmmic commented 1 month ago

Unable to Successfully Run Testnet With EigenLayer Contracts

This issue is currently being worked on in this branch

Goal/Intension:

We want to run local testnets for each of our AVSs (tangle-avs and incredible-squaring-avs). Each testnet needs to deploy the relevant EigenLayer Contracts. With a testnet running, the Operator of the AVS we are testing for should be able to successfully start, connect, and interact with the chain.


Problem or Current Unintended Behavior:

Deploying Contracts

EIP-3855 is not supported in one or more of the RPCs used. Unsupported Chain IDs: 31337. Contracts deployed with a Solidity version equal or higher than 0.8.20 might not work properly. For more information, please see https://eips.ethereum.org/EIPS/eip-3855 Traces: [22394884] → new IncredibleSquaringDeployer@0x5b73C5498c1E3b4dbA84de0F1833c4a029d90519 └─ ← [Return] 111640 bytes of code

[379280] IncredibleSquaringDeployer::run() ├─ [0] VM::projectRoot() [staticcall] │ └─ ← [Return] "/path/to/incredible-squaring-avs/contracts" ├─ [0] VM::toString(31337 [3.133e4]) [staticcall] │ └─ ← [Return] "31337" ├─ [0] VM::readFile("/path/to/incredible-squaring-avs/contracts/script/output/31337/eigenlayer_deployment_output.json") [staticcall] │ └─ ← [Return] ├─ [0] VM::parseJsonAddress("", ".addresses.strategyManager") [staticcall] │ └─ ← [Return] 0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9 ├─ [0] VM::parseJsonAddress("", ".addresses.delegation") [staticcall] │ └─ ← [Return] 0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9 ├─ [0] VM::parseJsonAddress("", ".addresses.avsDirectory") [staticcall] │ └─ ← [Return] 0x5FC8d32690cc91D4c39d9d3abcBD16989F875707 ├─ [0] VM::parseJsonAddress("", ".addresses.eigenLayerProxyAdmin") [staticcall] │ └─ ← [Return] ERC20Mock: [0x5FbDB2315678afecb367f032d93F642f64180aa3] ├─ [0] VM::parseJsonAddress("", ".addresses.eigenLayerPauserReg") [staticcall] │ └─ ← [Return] 0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512 ├─ [0] VM::parseJsonAddress("", ".addresses.baseStrategyImplementation") [staticcall] │ └─ ← [Return] 0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44 ├─ [0] VM::startBroadcast() │ └─ ← [Return] ├─ [264106] → new ERC20Mock@0x5FbDB2315678afecb367f032d93F642f64180aa3 │ └─ ← [Return] 1319 bytes of code ├─ [4030] → new @0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512 │ └─ ← [Revert] revert: ERC1967: new implementation is not a contract └─ ← [Revert] revert: ERC1967: new implementation is not a contract

Loading Chain State From JSON


Attempted Solutions/Approaches:

Deploying Contracts

Loading Chain State From JSON

Currently, loading the chain from a saved state works. However, registration still fails with the error that was shown in the previous section (the "0x" revert error). Thus, the signing logic and all other relevant code is being investigated and debugged. The cause of this issue was found and noted in the section above.


Steps to Reproduce:

Deploying Contracts

Loading Chain State From JSON


Environment:

I am on Windows using WSL2 with Ubuntu 22.04.4 LTS