Skip to content

Commit

Permalink
Merge pull request #1345 from privacy-scaling-explorations/chore/cli-…
Browse files Browse the repository at this point in the history
…cmd-name

chore: unify mention of maciAddress
  • Loading branch information
ctrlc03 authored Apr 4, 2024
2 parents 5e65e8e + dfc5fd2 commit 849b49f
Show file tree
Hide file tree
Showing 14 changed files with 128 additions and 128 deletions.
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

0 comments on commit 849b49f

Please sign in to comment.