Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
wshino committed Oct 22, 2024
1 parent 0d317d3 commit bc1b66d
Showing 1 changed file with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,21 @@ contract EmailAccountRecoveryTest_handleRecovery is StructHelper {
);
}

function testExpectRevertHandleRecoveryInvalidRecoveredAccount() public {
skipIfZkSync();
function testExpectRevertHandleRecoveryInvalidRecoveredAccount() public {
skipIfZkSync();

EmailAuthMsg memory emailAuthMsg = buildEmailAuthMsg();
emailAuthMsg.templateId = recoveryController.computeRecoveryTemplateId(0);
emailAuthMsg.commandParams[0] = abi.encode(address(0x0)); // Invalid account
EmailAuthMsg memory emailAuthMsg = buildEmailAuthMsg();
emailAuthMsg.templateId = recoveryController.computeRecoveryTemplateId(
0
);
emailAuthMsg.commandParams[0] = abi.encode(address(0x0)); // Invalid account

vm.startPrank(someRelayer);
vm.expectRevert(bytes("invalid account in email"));
recoveryController.handleRecovery(emailAuthMsg, 0);
vm.stopPrank();
}

vm.startPrank(someRelayer);
vm.expectRevert(bytes("invalid account in email"));
recoveryController.handleRecovery(emailAuthMsg, 0);
vm.stopPrank();
}
function testExpectRevertHandleRecoveryInvalidAccountInEmail() public {
skipIfZkSync();

Expand Down

0 comments on commit bc1b66d

Please sign in to comment.