Skip to content
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

Deploying L2 Testnet fails on first deployment #24

Open
foodaka opened this issue Jan 5, 2023 · 0 comments
Open

Deploying L2 Testnet fails on first deployment #24

foodaka opened this issue Jan 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@foodaka
Copy link
Contributor

foodaka commented Jan 5, 2023

When deploying L2 such as arbitrum-goerli running deploy fails. When trying to deploy again it will fail saying it has already been initialized.

Error: ERROR processing /Users/code/aave/deploy-v3/deploy/02_market/01b_l2_pool_implementation.ts:
Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (reason="execution reverted: Contract instance has already been initialized", method="estimateGas", transaction={"from":"0xfA0e305E0f46AB04f00ae6b5f4560d61a2183E00","to":"0x48424f2779be0f03cDF6F02E17A591A9BF7AF89f","data":"0xc4d66de8000000000000000000000000b1effe2ecd929ef28ebb7897233b26a1a9b42bff","accessList":null}, error={"name":"ProviderError","_stack":"ProviderError: HttpProviderError\n    at HttpProvid
``

Commenting out

// const pool = await getPool(poolArtifact.address);
// await waitForTx(await pool.initialize(addressesProviderAddress));
// console.log("Initialized L2Pool Implementation");


will make it work - need to investigate why it fails on the first attempt 
@foodaka foodaka added the bug Something isn't working label Jan 5, 2023
FuzzysTodd added a commit to FuzzysTodd/aave-v3-deploy that referenced this issue Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@foodaka and others