Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronfigueiredo committed May 3, 2024
1 parent 4012ddf commit cbdf3d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/data/confirmations/contract-interaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import { Confirmation } from '../../../ui/pages/confirmations/types/confirm';
export const CONTRACT_INTERACTION_SENDER_ADDRESS =
'0x2e0d7e8c45221fca00d74a3609a0f7097035d09b';

export const DEPOSIT_METHOD_DATA = '0xd0e30db0';

export const genUnapprovedContractInteractionConfirmation = (
{ address, txData } = {
address: CONTRACT_INTERACTION_SENDER_ADDRESS,
txData: '0xd0e30db0',
txData: DEPOSIT_METHOD_DATA,
},
): Confirmation => ({
actionId: String(400855682),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { fireEvent, waitFor } from '@testing-library/react';
import React from 'react';
import { genUnapprovedContractInteractionConfirmation } from '../../../../../../test/data/confirmations/contract-interaction';
import {
DEPOSIT_METHOD_DATA,
genUnapprovedContractInteractionConfirmation,
} from '../../../../../../test/data/confirmations/contract-interaction';
import { unapprovedPersonalSignMsg } from '../../../../../../test/data/confirmations/personal_sign';
import mockState from '../../../../../../test/data/mock-state.json';
import { renderWithProvider } from '../../../../../../test/jest';
Expand Down Expand Up @@ -39,6 +42,7 @@ describe('Header', () => {
confirm: {
currentConfirmation: genUnapprovedContractInteractionConfirmation({
address: '0x0dcd5d886577d5081b0c52e242ef29e70be3e7bc',
txData: DEPOSIT_METHOD_DATA,
}),
},
});
Expand Down

0 comments on commit cbdf3d5

Please sign in to comment.