Skip to content

Commit

Permalink
fix hardhat deploy script
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Lacal <[email protected]>
  • Loading branch information
EnriqueL8 committed Apr 26, 2024
1 parent 2ec0fa0 commit d421c97
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions samples/solidity/scripts/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,16 @@ async function main() {
//
// If this script is run directly using `node` you may want to call compile
// manually to make sure everything is compiled
// await hre.run('compile');
// await hre.run('compile');

// We get the contract to deploy
const ERC20 = await ethers.getContractFactory('ERC20WithData');
const erc20 = await ERC20.deploy('FFC', 'FFC');
await erc20.deployed();
console.log('ERC-20 contract deployed to:', erc20.address);
console.log('ERC-20 contract deployed to:', erc20.target);

const ERC721 = await ethers.getContractFactory('ERC721WithData');
const erc721 = await ERC721.deploy('FFNFT', 'FFNFT', "");
await erc721.deployed();
console.log('ERC-721 contract deployed to:', erc721.address);
console.log('ERC-721 contract deployed to:', erc721.target);
}

// We recommend this pattern to be able to use async/await everywhere
Expand Down

0 comments on commit d421c97

Please sign in to comment.