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

Unable to Deploy Contracts on Custom Network #4795

Open
praddoskanna opened this issue May 14, 2024 · 5 comments
Open

Unable to Deploy Contracts on Custom Network #4795

praddoskanna opened this issue May 14, 2024 · 5 comments

Comments

@praddoskanna
Copy link

praddoskanna commented May 14, 2024

I am trying to deploy an sample erc20 contract in ozonechain , but remix returns me this error .

Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending?
Returned error: Internal error
[object Object]

creation of TestToken pending...
creation of TestToken errored: Error occurred: Internal error.

Internal error

You may want to cautiously increase the gas limit if the transaction went out of gas.

Network :

Name - "Ozone Chain Mainnet",
Chain - "OZONE",
RPC - "https://node1.ozonechain.io"
ChainId - 4000,
Explorer - "https://ozonescan.io"

Contract Code :
// SPDX-License-Identifier: MIT
// Compatible with OpenZeppelin Contracts ^5.0.0
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

contract TestToken is ERC20 {
constructor() ERC20("TestToken", "TST") {
_mint(msg.sender, 1000 * 10 ** decimals());
}
}

image

@Aniket-Engg
Copy link
Collaborator

I can reproduce it. It seems an error with RPC

@Aniket-Engg
Copy link
Collaborator

I see same RPC address is given on chainlist too https://chainlist.org/chain/4000 but in browser console, it shows this:

Screenshot 2024-05-14 at 7 41 40 PM

which seems a RPC call related issue

@praddoskanna
Copy link
Author

Hi @Aniket-Engg

I'm able to deploy contract via Hardhat and custom network configuration. But get this error while using Remix. Can you suggest me an fix or alternative to this issue.

@praddoskanna
Copy link
Author

Hi @Aniket-Engg is there any updates on this issue?

@Aniket-Engg
Copy link
Collaborator

@praddoskanna can you check if you are able to deploy to any other networks, may be try sepolia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants