Comments (5)
I have exactly the same issue? Anyone found solution?
from imx-contracts.
It seems the issue is that the IMX address run out of balance in ropsten network. Check here.
https://ropsten.etherscan.io/address/0x75965652ac872e3a9fd3c9ad8e290473c23d763c
Try transferring some ETH or get some from faucet before creating your contract. That worked for me.
from imx-contracts.
I had it working by removing DEPLOYER_MAINNET_PRIVATE_KEY=
from .env
and the mainnet entry in hardhat.config.ts
-> networks
.
I also transfered 0.01 eth to the account.
Here is my hardhat.config.ts
file:
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-etherscan";
import dotenv from "dotenv";
dotenv.config();
/**
- @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: "0.8.4",
networks: {
dev: {
url:https://eth-ropsten.alchemyapi.io/v2/${process.env.ALCHEMY_API_KEY}
,
accounts: [0x${process.env.DEPLOYER_ROPSTEN_PRIVATE_KEY}
],
},
ropsten: {
url:https://eth-ropsten.alchemyapi.io/v2/${process.env.ALCHEMY_API_KEY}
,
accounts: [0x${process.env.DEPLOYER_ROPSTEN_PRIVATE_KEY}
],
},
},
typechain: {
outDir: "artifacts/typechain",
target: "ethers-v5",
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
},
};
I currently have this error:
.... Verifying contract in 5 minutes... NomicLabsHardhatPluginError: The address 0x4E6cA2A13F447c7aB2006273Ce37f07b2092f990 has no bytecode. Is the contract deployed to this network? The selected network is ropsten. at Object.retrieveContractBytecode (E:\_DEV\_TEST_PROJECTS\IMX_Token_Examples\contractsTwo\node_modules\@nomiclabs\hardhat-etherscan\src\network\prober.ts:142:11) at processTicksAndRejections (internal/process/task_queues.js:95:5) at SimpleTaskDefinition.verifySubtask [as action] (E:\_DEV\_TEST_PROJECTS\IMX_Token_Examples\contractsTwo\node_modules\@nomiclabs\hardhat-etherscan\src\index.ts:198:31) at Environment._runTaskDefinition (E:\_DEV\_TEST_PROJECTS\IMX_Token_Examples\contractsTwo\node_modules\hardhat\src\internal\core\runtime-environment.ts:217:14) at Environment.run (E:\_DEV\_TEST_PROJECTS\IMX_Token_Examples\contractsTwo\node_modules\hardhat\src\internal\core\runtime-environment.ts:129:14) at main (E:\_DEV\_TEST_PROJECTS\IMX_Token_Examples\contractsTwo\deploy\asset.ts:21:5) error Command failed with exit code 1.
from imx-contracts.
go to ALCHEMY to apply for ALCHEMY_API_KEY
go to your metamask get private key and set on both
DEPLOYER_ROPSTEN_PRIVATE_KEY
DEPLOYER_MAINNET_PRIVATE_KEY
I dont think harthat command 'network' ropsten will make the command deploy to mainnet, also it is not necessary to remove any code from the config file
After I did what has been asked by the readme of this repo, and updated above 3 keys, my deploy is suceess.
Hope this is helpful
from imx-contracts.
more complete guide here https://docs.x.immutable.com/docs/zero-to-hero-nft-minting step 7 point 4
from imx-contracts.
Related Issues (9)
- Typo in contract Registration.sol
- npm install faild HOT 1
- distinction between "advanced" usage and "basic" usage is unclear
- ts-node version leads into issue "False expression: Non-string value passed to ts.resolveTypeReferenceDirective"
- Alchemy does not support Ropsten anymore HOT 1
- mint_unwithdrawable HOT 1
- deploy/registration.ts uses incorrect address in constructor
- Using IERC721Enumerable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imx-contracts.