Skip to content

Commit

Permalink
Fixing integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SoraSuegami committed Aug 2, 2024
1 parent e60a6ca commit 7d0b967
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/contracts/test/bin/email_sender.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKSPACE_DIR="${SCRIPT_DIR}/../../"
INPUT_FILE="${SCRIPT_DIR}/../build_integration/email_sender_input.json"
yarn workspace @email-wallet/circom gen-email-sender-input \
--email-file $EMAIL_FILE_PATH \
--account-key $ACCOUNT_CODE \
--account-code $ACCOUNT_CODE \
--input-file $INPUT_FILE \
--prove
exit 0
4 changes: 2 additions & 2 deletions packages/contracts/test/bin/psi_point.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ RELAYER_RAND=$3

SCRIPT_DIR=$(cd $(dirname $0); pwd)
WORKSPACE_DIR="${SCRIPT_DIR}/../../"
INPUT_FILE="${SCRIPT_DIR}/../build_integration/psi_point.json"
yarn workspace @email-wallet/circom psi-point-input \
INPUT_FILE="${SCRIPT_DIR}/../build_integration/psi_point_input.json"
yarn workspace @email-wallet/circom gen-psi-point-input \
--email-addr $EMAIL_ADDR \
--account-code $ACCOUNT_CODE \
--relayer-rand $RELAYER_RAND \
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/test/helpers/IntegrationTestHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ abstract contract IntegrationTestHelper is Test {
(emailProof, ) = genEmailProof(emailFile, accountCode, emailDomain, emailAddr);

string memory projectRoot = vm.projectRoot();
string[] memory inputGenerationInput = new string[](3);
string[] memory inputGenerationInput = new string[](4);
inputGenerationInput[0] = string.concat(projectRoot, "/test/bin/psi_point.sh");
inputGenerationInput[1] = emailAddr;
inputGenerationInput[2] = uint256(accountCode).toHexString(32);
Expand Down

0 comments on commit 7d0b967

Please sign in to comment.