Skip to content

Commit

Permalink
feat: update unit test for parties
Browse files Browse the repository at this point in the history
  • Loading branch information
ponyjackal committed Feb 27, 2024
1 parent d8199ef commit 44089a5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/transformers/_common/parties.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,24 @@ describe('transactionParties', () => {
'0xc52b39ab373c6c5dceb9b87658808f956dfd25fd',
]);
}

const block1 = loadBlockFixture('ethereum', '19314625_decoded');
const result1 = transform(block1);

const txResult3 = result1.transactions.find(
(tx) =>
tx.hash ===
'0x3f72cddbe502dd7af1d946d8715c1166b62a19cf113d924375e9623783e3c27f',
);
expect(txResult3).toBeDefined();
if (txResult3) {
expect(txResult3.parties).toStrictEqual([
'0x9696f59e4d72e237be84ffd425dcad154bf96976',
'0xdac17f958d2ee523a2206206994597c13d831ec7',
'0x2906bdda4bde0338cf9af4370d5b838da4a0d08f',
'0x1111111254eeb25477b68fb85ed929f73a960582',
'0x54b50187becd0bbcfd52ec5d538433dab044d2a8',
]);
}
});
});

0 comments on commit 44089a5

Please sign in to comment.