From f3e5f41d3456f6022821fd209eeb1b2236a97207 Mon Sep 17 00:00:00 2001 From: gaetbout Date: Fri, 28 Jun 2024 13:14:30 +0200 Subject: [PATCH] invalid calldata --- tests-integration/claim_internal.test.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests-integration/claim_internal.test.ts b/tests-integration/claim_internal.test.ts index c863b10..68a3894 100644 --- a/tests-integration/claim_internal.test.ts +++ b/tests-integration/claim_internal.test.ts @@ -54,15 +54,12 @@ describe("Claim Internal", function () { const { factory } = await setupGiftProtocol(); const { gift, giftPrivateKey } = await defaultDepositTestSetup({ factory, useTxV3 }); const receiver = randomReceiver(); - const escrowAddress = calculateEscrowAddress(gift); - const escrowAccount = getEscrowAccount(gift, giftPrivateKey, escrowAddress); - const mockERC20 = await deployMockERC20(); - gift.fee_token = mockERC20.address; + const escrowAccount = getEscrowAccount(gift, giftPrivateKey); await expectRevertWithErrorMessage("escrow/invalid-calldata", () => escrowAccount.execute([ { - contractAddress: escrowAddress, + contractAddress: escrowAccount.address, calldata: [buildGiftCallData(gift), receiver, 1], entrypoint: "claim_internal", },