From f25ed3dce728a758cf521494295869ae5a56d9f8 Mon Sep 17 00:00:00 2001 From: gaetbout Date: Thu, 27 Jun 2024 11:09:36 +0200 Subject: [PATCH] remvoe extra comment --- tests-integration/account.test.ts | 2 +- tests-integration/cancel.test.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests-integration/account.test.ts b/tests-integration/account.test.ts index 4943094..af609e0 100644 --- a/tests-integration/account.test.ts +++ b/tests-integration/account.test.ts @@ -14,7 +14,7 @@ describe("Escrow Account", function () { const { factory } = await setupGiftProtocol(); const { gift } = await defaultDepositTestSetup({ factory }); const escrowAddress = calculateEscrowAddress(gift); -// This says validate but calls execute? + await expectRevertWithErrorMessage("escrow/only-protocol", () => deployer.execute([{ contractAddress: escrowAddress, calldata: [0x0], entrypoint: "__validate__" }]), ); diff --git a/tests-integration/cancel.test.ts b/tests-integration/cancel.test.ts index 5362a79..54fc26b 100644 --- a/tests-integration/cancel.test.ts +++ b/tests-integration/cancel.test.ts @@ -70,7 +70,9 @@ describe("Cancel Gift", function () { it(`wrong sender`, async function () { const { factory } = await setupGiftProtocol(); const { gift } = await defaultDepositTestSetup({ factory }); - await expectRevertWithErrorMessage("escr-lib/wrong-sender", () => cancelGift({ gift, senderAccount: devnetAccount() })); + await expectRevertWithErrorMessage("escr-lib/wrong-sender", () => + cancelGift({ gift, senderAccount: devnetAccount() }), + ); }); it(`owner reclaim dust (gift_token == fee_token)`, async function () {