Skip to content

Commit

Permalink
fix: storage write for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmad committed Nov 24, 2024
1 parent 57a68f0 commit 7b4ae94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/cli/tests/e2e/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ describe("e2e tests", function test() {
...(await verifyArgs()),
tallyData: tallyFileData,
maciAddress: tallyFileData.maci,
tallyAddress: tallyFileData.tallyAddress,
signer,
});
});
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/ts/commands/deployPoll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ export const deployPoll = async ({
logGreen(quiet, info(`Tally contract: ${tallyContractAddress}`));

// store the address
storeContractAddress(`MessageProcessor-${pollId.toString()}`, messageProcessorContractAddress, network?.name);
storeContractAddress(`Tally-${pollId.toString()}`, tallyContractAddress, network?.name);
storeContractAddress(`Poll-${pollId.toString()}`, pollAddr, network?.name);
await storeContractAddress(`MessageProcessor-${pollId.toString()}`, messageProcessorContractAddress, network?.name);
await storeContractAddress(`Tally-${pollId.toString()}`, tallyContractAddress, network?.name);
await storeContractAddress(`Poll-${pollId.toString()}`, pollAddr, network?.name);
} catch (error) {
logError((error as Error).message);
}
Expand Down

0 comments on commit 7b4ae94

Please sign in to comment.