diff --git a/tests/core/test.spec.ts b/tests/core/test.spec.ts index 8915743..a3d07ad 100644 --- a/tests/core/test.spec.ts +++ b/tests/core/test.spec.ts @@ -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"), }, ], }, @@ -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', () => {