Skip to content

Commit

Permalink
use ethers instead of viem
Browse files Browse the repository at this point in the history
  • Loading branch information
y0sher committed Nov 3, 2024
1 parent 583b7b7 commit e01edee
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tasks/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ subtask('deploy:mock-token', 'Deploys / fetch SSV Token').setAction(async ({}, h
if (tokenAddress) return tokenAddress;

// Local networks, deploy mock token
const ssvToken = await hre.viem.deployContract('SSVToken');
// const ssvToken = await hre.viem.deployContract('SSVToken');
const ssvTokenFactory = await ethers.getContractFactory('SSVTokenMock');
const ssvToken = await ssvTokenFactory.deploy();
await ssvToken.waitForDeployment();

return ssvToken.address;
});
Expand All @@ -149,7 +152,9 @@ subtask('deploy:impl', 'Deploys an implementation contract')
await hre.run('compile');

// Deploy implemetation contract
const contractImpl = await hre.viem.deployContract(contract);
const contractFactory = await ethers.getContractFactory(contract);
const contractImpl = await contractFactory.deploy();
await contractImpl.waitForDeployment();
console.log(`${contract} implementation deployed to: ${contractImpl.address}`);

return contractImpl.address;
Expand Down

0 comments on commit e01edee

Please sign in to comment.