Skip to content

Commit

Permalink
feat: add test to parites
Browse files Browse the repository at this point in the history
  • Loading branch information
ponyjackal committed Feb 27, 2024
1 parent e5f28ba commit 6e67dc2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/transformers/_common/parties.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,23 @@ describe('transactionParties', () => {
]);
}

const txResult4 = result1.transactions.find(
(tx) =>
tx.hash ===
'0xe408697db3e84a9287f563dafb8243c0e12ed604cc669a07157d40485d43226b',
);
expect(txResult4).toBeDefined();
if (txResult4) {
expect(txResult4.parties).toStrictEqual([
'0xf074c1652d4ff936effe0087e7ce57c62aa7371d',
'0xd1d2eb1b1e90b638588728b4130137d262c87cae',
'0x8d92a6812b3da2346883f0631910c96cb9c5a5f9',
'0x2906bdda4bde0338cf9af4370d5b838da4a0d08f',
'0x1111111254eeb25477b68fb85ed929f73a960582',
'0x54b50187becd0bbcfd52ec5d538433dab044d2a8',
]);
}

const block2 = loadBlockFixture('ethereum', '18965012_decoded');
const result2 = transform(block2);

Expand Down

0 comments on commit 6e67dc2

Please sign in to comment.