-
Notifications
You must be signed in to change notification settings - Fork 869
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
Comments
I can reproduce it. It seems an error with RPC |
I see same RPC address is given on chainlist too https://chainlist.org/chain/4000 but in browser console, it shows this: which seems a RPC call related issue |
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. |
Hi @Aniket-Engg is there any updates on this issue? |
@praddoskanna can you check if you are able to deploy to any other networks, may be try sepolia |
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());
}
}
The text was updated successfully, but these errors were encountered: