From bc1b66de64c57abb456693dbad973a5d71b81df0 Mon Sep 17 00:00:00 2001 From: wshino Date: Tue, 22 Oct 2024 20:24:28 +0700 Subject: [PATCH] Format --- .../EmailAccountRecovery_handleRecovery.t.sol | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/packages/contracts/test/EmailAccountRecovery/EmailAccountRecovery_handleRecovery.t.sol b/packages/contracts/test/EmailAccountRecovery/EmailAccountRecovery_handleRecovery.t.sol index f324f20a..7bb5f67b 100644 --- a/packages/contracts/test/EmailAccountRecovery/EmailAccountRecovery_handleRecovery.t.sol +++ b/packages/contracts/test/EmailAccountRecovery/EmailAccountRecovery_handleRecovery.t.sol @@ -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();