Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

dont have bytecode - error - etherlime deploying to ropsten network #331

@biahoi

Description

@biahoi

I am trying to the code implemented with Diamond standard, but got this Error: Passed contract is not a valid contract object. It needs to have bytecode, abi and contractName properties

Here is my code for deploy.js:

const etherlime = require('etherlime-lib');
const DiamondExample = require('../build/DiamondExample.json');
const ethers = require('ethers');
require('dotenv').config()

const deploy = async (networks, secrets, etherscanApiKeys) => {

	const deployer = new etherlime.InfuraPrivateKeyDeployer(
		process.env.DEPLOYER_PRIVATE_KEY,
		process.env.INFURA_NETWORK,
		process.env.INFURA_API_KEY
	);

	deployer.setVerifierApiKey(process.env.ETHERSCAN_API_KEY);
	const result = await deployer.deployAndVerify(DiamondExample);
};
module.exports = {
	deploy
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions