Skip to content

Commit

Permalink
invalid calldata
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetbout committed Jun 28, 2024
1 parent 9034a3e commit f3e5f41
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests-integration/claim_internal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down

0 comments on commit f3e5f41

Please sign in to comment.