Coder Social home page Coder Social logo

Read Me is Inaccurate about imx-contracts HOT 5 OPEN

immutable avatar immutable commented on July 16, 2024 1
Read Me is Inaccurate

from imx-contracts.

Comments (5)

bkotrys avatar bkotrys commented on July 16, 2024

I have exactly the same issue? Anyone found solution?

from imx-contracts.

avanaur avatar avanaur commented on July 16, 2024

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.

enrickla avatar enrickla commented on July 16, 2024

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.

lancety avatar lancety commented on July 16, 2024

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.

lancety avatar lancety commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.