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

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

Open
biahoi opened this issue Aug 3, 2020 · 0 comments
Open

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

biahoi opened this issue Aug 3, 2020 · 0 comments

Comments

@biahoi
Copy link

biahoi commented Aug 3, 2020

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
};
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant