Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tee-py committed Feb 22, 2025
1 parent ead1453 commit c0ae1f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/core/test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ describe('Transaction Parser Utils', () => {
{
accounts: ['acct-1', 'acct-2', 'acct-3'],
data: '0xray-test',
programId: 'hello-there',
programId: new PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),
},
{
accounts: ['acct-1', 'acct-2', 'acct-3'],
data: '0xray-test',
programId: 'hello-hyy',
programId: new PublicKey("B9ktH3g7mwgdoDgCgGRim6qeqPcyRVWJueXS12CMpump"),
},
],
},
Expand All @@ -28,8 +28,8 @@ describe('Transaction Parser Utils', () => {

const result = flattenTransactionInstructions(mockTransaction as any);
expect(result.length).toEqual(2);
expect((result as {programId: string}[])[0].programId).toEqual('hello-there');
expect((result as {programId: string}[])[0].programId).toEqual('hello-hyy');
expect((result as {programId: PublicKey}[])[0].programId.toString()).toEqual("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");
expect((result as {programId: PublicKey}[])[1].programId.toString()).toEqual("B9ktH3g7mwgdoDgCgGRim6qeqPcyRVWJueXS12CMpump");
});

it('should handle instructions with inner cpi calls', () => {
Expand Down

0 comments on commit c0ae1f0

Please sign in to comment.