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

Contract deploy hangs in the loop #4913

Open
igorroman777 opened this issue Jan 8, 2025 · 4 comments
Open

Contract deploy hangs in the loop #4913

igorroman777 opened this issue Jan 8, 2025 · 4 comments
Assignees
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6

Comments

@igorroman777
Copy link

Ethers Version

6.13.5

Search Terms

abi

Describe the Problem

I have installed my own sepolia erthereum node. And everything works, everything was synchronized. All metrics are ok.
Now I just want to deploy my contract:
const marketItemLibFactory = new ethers.ContractFactory(marketItemLibJson.abi, marketItemLibJson.bytecode, wallet); const marketItemLibContract = await marketItemLibFactory.deploy({gasLimit: 300000}); console.log("process hangs in the loop:"); await marketItemLibContract.waitForDeployment();
And the process hangs in the loop.
In the logs of sepolia ethereum node and prysm-beacon I don't see any error.

Code Snippet

const marketItemLibFactory = new ethers.ContractFactory(marketItemLibJson.abi, marketItemLibJson.bytecode, wallet);
const marketItemLibContract = await marketItemLibFactory.deploy({gasLimit: 300000});
# process hangs in the loop:
await marketItemLibContract.waitForDeployment();

Contract ABI

No response

Errors

process hangs in the loop:
await marketItemLibContract.waitForDeployment();

Environment

Hardhat

Environment (Other)

No response

@igorroman777 igorroman777 added investigate Under investigation and may be a bug. v6 Issues regarding v6 labels Jan 8, 2025
@igorroman777 igorroman777 changed the title Add Bug Title HereContact deploy hangs in the loop Contact deploy hangs in the loop Jan 8, 2025
@igorroman777 igorroman777 changed the title Contact deploy hangs in the loop Contract deploy hangs in the loop Jan 8, 2025
@igorroman777
Copy link
Author

at gas 3000 I get the following error:

error: { code: -32000, message: 'intrinsic gas too low: gas 3000, minimum needed 89372' },

@ricmoo
Copy link
Member

ricmoo commented Jan 8, 2025

@igorroman777 That gas limit definitely seems too low. A plain transaction with no data has a base fee of 21,000. You need to increase the gasLimit. There is an additional fee for transactions with data, for warming storage slots, account creation, etc.

@lastperson
Copy link

lastperson commented Jan 9, 2025

@igorroman777 could you add an another async function call (just any function with await) after the waitForDeployment() and see if it helps?

@igorroman777
Copy link
Author

@ricmoo Hi, I have adjusted my limit:
--miner.gaslimit 100000000 --miner.gasprice 100000000

My new Error is:
error: { code: -32000, message: 'insufficient funds for gas * price + value: balance 1148601561468020189, queued cost 595740920839640558, tx cost 665734646970000000, overshot 112874006341620369' }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Under investigation and may be a bug. v6 Issues regarding v6
Projects
None yet
Development

No branches or pull requests

3 participants