Skip to content

Commit

Permalink
test: resolve failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
YamenMerhi committed Oct 10, 2023
1 parent 3a7c099 commit 0e6ff47
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
13 changes: 9 additions & 4 deletions tests/LSP20CallVerification/LSP6/Interactions/Security.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,15 @@ export const testSecurityScenarios = (buildContext: () => Promise<LSP6TestContex
await context.keyManager.connect(context.mainController).execute(setDataPayload);

const universalReceiverDelegatePayload =
universalReceiverDelegateDataUpdater.interface.encodeFunctionData('universalReceiver', [
LSP1_TYPE_IDS.LSP7Tokens_SenderNotification,
'0xcafecafecafecafe',
]);
universalReceiverDelegateDataUpdater.interface.encodeFunctionData(
'universalReceiverDelegate',
[
ethers.constants.AddressZero,
0,
LSP1_TYPE_IDS.LSP7Tokens_SenderNotification,
'0xcafecafecafecafe',
],
);

const executePayload = context.universalProfile.interface.encodeFunctionData('execute', [
OPERATION_TYPES.CALL,
Expand Down
13 changes: 9 additions & 4 deletions tests/Reentrancy/LSP6/LSP6Reentrancy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,15 @@ export const shouldBehaveLikeLSP6ReentrancyScenarios = (
await context.keyManager.connect(context.mainController).execute(setDataPayload);

const universalReceiverDelegatePayload =
universalReceiverDelegateDataUpdater.interface.encodeFunctionData('universalReceiver', [
LSP1_TYPE_IDS.LSP7Tokens_SenderNotification,
'0xcafecafecafecafe',
]);
universalReceiverDelegateDataUpdater.interface.encodeFunctionData(
'universalReceiverDelegate',
[
ethers.constants.AddressZero,
0,
LSP1_TYPE_IDS.LSP7Tokens_SenderNotification,
'0xcafecafecafecafe',
],
);

const executePayload = context.universalProfile.interface.encodeFunctionData('execute', [
OPERATION_TYPES.CALL,
Expand Down

0 comments on commit 0e6ff47

Please sign in to comment.