Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAO-386: Add test coverage to veRIF contract #3

Merged
merged 9 commits into from
Jun 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change to deploy-veRif
rodrigoncalves committed Jun 17, 2024
commit ab1588845beedc080846a850f25544945f296247
13 changes: 0 additions & 13 deletions scripts/deploy-dao.ts

This file was deleted.

10 changes: 5 additions & 5 deletions scripts/deploy-verif.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { ethers, upgrades } from 'hardhat'
import { ethers, upgrades } from 'hardhat';

export const deployVeRif = async (rifTokenAddress: string, deployerAddress: string) => {
const VeRIFTokenFactory = await ethers.getContractFactory('VeRIFToken')
const VeRIFTokenFactory = await ethers.getContractFactory('VeRIFToken');
const veRIFToken = await upgrades.deployProxy(VeRIFTokenFactory, [rifTokenAddress, deployerAddress], {
initializer: 'initialize',
kind: 'uups',
timeout: 0, // wait indefinitely
unsafeAllow: ['internal-function-storage'],
})
});

return await veRIFToken.waitForDeployment()
}
return await veRIFToken.waitForDeployment();
};