Open biahoi opened 4 years ago
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 };
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: