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

chore: unify mention of maciAddress #1345

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 4 additions & 4 deletions cli/tests/ceremony-params/ceremonyParams.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ describe("Stress tests with ceremony params (6,9,2,3)", function test() {
voteOptionIndex: randomVoteOption,
nonce: 1n,
newVoteWeight: randomVoteWeight,
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
salt: genRandomSalt(),
privateKey: users[0].privKey.serialize(),
pollId: 0n,
Expand Down Expand Up @@ -211,7 +211,7 @@ describe("Stress tests with ceremony params (6,9,2,3)", function test() {
nonce: 1n,
pollId: 0n,
newVoteWeight: randomVoteWeight,
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
salt: genRandomSalt(),
privateKey: users[i].privKey.serialize(),
signer,
Expand Down Expand Up @@ -283,7 +283,7 @@ describe("Stress tests with ceremony params (6,9,2,3)", function test() {
nonce: 1n,
pollId: 0n,
newVoteWeight: 9n,
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
salt: genRandomSalt(),
privateKey: users[0].privKey.serialize(),
signer,
Expand Down Expand Up @@ -339,7 +339,7 @@ describe("Stress tests with ceremony params (6,9,2,3)", function test() {
nonce: 1n,
pollId: 0n,
newVoteWeight: randomVoteWeight,
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
salt: genRandomSalt(),
privateKey: users[i].privKey.serialize(),
signer,
Expand Down
2 changes: 1 addition & 1 deletion cli/tests/e2e/e2e.nonQv.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ describe("e2e tests with non quadratic voting", function test() {
nonce: 1n,
pollId: 0n,
newVoteWeight: 9n,
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
salt: genRandomSalt(),
privateKey: user.privKey.serialize(),
signer,
Expand Down
30 changes: 15 additions & 15 deletions cli/tests/e2e/e2e.subsidy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ describe("e2e with Subsidy tests", function test() {

it("should publish six messages", async () => {
await publish({
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
pubkey: users[0].pubKey.serialize(),
stateIndex: 1n,
voteOptionIndex: 0n,
Expand All @@ -130,7 +130,7 @@ describe("e2e with Subsidy tests", function test() {
});

await publish({
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
pubkey: users[1].pubKey.serialize(),
stateIndex: 2n,
voteOptionIndex: 1n,
Expand All @@ -143,7 +143,7 @@ describe("e2e with Subsidy tests", function test() {
});

await publish({
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
pubkey: users[2].pubKey.serialize(),
stateIndex: 3n,
voteOptionIndex: 2n,
Expand All @@ -156,7 +156,7 @@ describe("e2e with Subsidy tests", function test() {
});

await publish({
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
pubkey: users[3].pubKey.serialize(),
stateIndex: 4n,
voteOptionIndex: 3n,
Expand All @@ -169,7 +169,7 @@ describe("e2e with Subsidy tests", function test() {
});

await publish({
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
pubkey: users[3].pubKey.serialize(),
stateIndex: 4n,
voteOptionIndex: 3n,
Expand All @@ -182,7 +182,7 @@ describe("e2e with Subsidy tests", function test() {
});

await publish({
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
pubkey: users[3].pubKey.serialize(),
stateIndex: 4n,
voteOptionIndex: 3n,
Expand Down Expand Up @@ -245,7 +245,7 @@ describe("e2e with Subsidy tests", function test() {
nonce: 1n,
pollId: 0n,
newVoteWeight: 9n,
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
salt: genRandomSalt(),
privateKey: users[0].privKey.serialize(),
signer,
Expand Down Expand Up @@ -293,7 +293,7 @@ describe("e2e with Subsidy tests", function test() {
nonce: 1n,
pollId: 0n,
newVoteWeight: 9n,
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
salt: genRandomSalt(),
privateKey: user.privKey.serialize(),
signer,
Expand Down Expand Up @@ -350,7 +350,7 @@ describe("e2e with Subsidy tests", function test() {
nonce: 1n,
pollId: 0n,
newVoteWeight: 9n,
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
salt: genRandomSalt(),
privateKey: users[0].privKey.serialize(),
signer,
Expand Down Expand Up @@ -380,7 +380,7 @@ describe("e2e with Subsidy tests", function test() {
nonce: 1n,
pollId: 1n,
newVoteWeight: 9n,
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
salt: genRandomSalt(),
privateKey: users[0].privKey.serialize(),
signer,
Expand All @@ -393,7 +393,7 @@ describe("e2e with Subsidy tests", function test() {
nonce: 1n,
pollId: 1n,
newVoteWeight: 1n,
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
salt: genRandomSalt(),
privateKey: users[1].privKey.serialize(),
signer,
Expand All @@ -406,7 +406,7 @@ describe("e2e with Subsidy tests", function test() {
nonce: 1n,
pollId: 1n,
newVoteWeight: 3n,
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
salt: genRandomSalt(),
privateKey: users[2].privKey.serialize(),
signer,
Expand All @@ -421,7 +421,7 @@ describe("e2e with Subsidy tests", function test() {
nonce: 1n,
pollId: 2n,
newVoteWeight: 3n,
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
salt: genRandomSalt(),
privateKey: users[3].privKey.serialize(),
signer,
Expand All @@ -434,7 +434,7 @@ describe("e2e with Subsidy tests", function test() {
nonce: 1n,
pollId: 2n,
newVoteWeight: 2n,
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
salt: genRandomSalt(),
privateKey: users[4].privKey.serialize(),
signer,
Expand All @@ -447,7 +447,7 @@ describe("e2e with Subsidy tests", function test() {
nonce: 1n,
pollId: 2n,
newVoteWeight: 9n,
maciContractAddress: maciAddresses.maciAddress,
maciAddress: maciAddresses.maciAddress,
salt: genRandomSalt(),
privateKey: users[5].privKey.serialize(),
signer,
Expand Down
Loading
Loading