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

812 deploy contract on e2e test start #819

Merged
merged 8 commits into from
Jul 22, 2024
Next Next commit
add contract deploy script to hardhat
ognjenkurtic committed Jul 18, 2024
commit 7b7d626bbd3878b8c472b125cc91753e17976a99
21 changes: 21 additions & 0 deletions examples/bri-3/ccsm/scripts/deploy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const hre = require("hardhat");

async function main() {
const [owner, adminAccount] = await hre.ethers.getSigners();

const CcsmBpiStateAnchor = await hre.ethers.getContractFactory("CcsmBpiStateAnchor");

const ccsmBpiStateAnchor = await CcsmBpiStateAnchor.deploy([
await owner.getAddress(),
await adminAccount.getAddress(),
]);

console.log("CcsmBpiStateAnchor deployed to:", await ccsmBpiStateAnchor.getAddress());
}

main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error);
process.exit(1);
});