2022-06-23 15:36:10 +02:00
|
|
|
import { expect } from "chai";
|
|
|
|
import { ethers } from "hardhat";
|
|
|
|
|
|
|
|
describe("Rln", function () {
|
|
|
|
it("Deploying", async function () {
|
|
|
|
const PoseidonHasher = await ethers.getContractFactory("PoseidonHasher");
|
|
|
|
const poseidonHasher = await PoseidonHasher.deploy();
|
|
|
|
|
|
|
|
await poseidonHasher.deployed();
|
|
|
|
|
|
|
|
console.log("PoseidonHasher deployed to:", poseidonHasher.address);
|
|
|
|
|
2022-06-23 16:42:29 +02:00
|
|
|
const Rln = await ethers.getContractFactory("RLN");
|
2022-06-23 18:21:08 +02:00
|
|
|
const rln = await Rln.deploy(1000000000000000,20,poseidonHasher.address);
|
2022-06-23 15:36:10 +02:00
|
|
|
|
|
|
|
await rln.deployed();
|
|
|
|
|
|
|
|
console.log("Rln deployed to:", rln.address);
|
|
|
|
});
|
|
|
|
});
|