Skip to content

Commit f6a0d36

Browse files
committed
test(cardano-services): re-enable test "finds transactions with address within outputs"
The test uses fixtureBuilder.getGenesisAddresses(); it is not clear what was changed from previous version to make genesis addresses no longer having ids starting from 1, but we know which is the value of their utxos: changed the fixtureBuilder to get genesis addresses regardless from their ids.
1 parent ec1ab0c commit f6a0d36

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/cardano-services/test/ChainHistory/ChainHistoryHttpService.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,7 @@ describe('ChainHistoryHttpService', () => {
516516
expect(response.pageResults[0].body.inputs).toMatchShapeOf(DataMocks.Tx.inputs);
517517
});
518518

519-
// TODO: LW-9889 Empty genesis addresses returned by fixtureBuilder.getGenesisAddresses()
520-
it.skip('finds transactions with address within outputs', async () => {
519+
it('finds transactions with address within outputs', async () => {
521520
const addresses: Cardano.PaymentAddress[] = await fixtureBuilder.getGenesisAddresses();
522521
expect(() => Cardano.PaymentAddress(addresses[0] as unknown as string)).not.toThrow();
523522

packages/cardano-services/test/ChainHistory/fixtures/queries.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,9 @@ export const genesisUtxoAddresses = `
7676
address
7777
FROM
7878
tx_out WHERE
79-
stake_address_id = 1 OR
80-
stake_address_id = 2 OR
81-
stake_address_id = 3
82-
GROUP BY address`;
79+
value = 500000000000
80+
GROUP BY address
81+
LIMIT 3`;
8382

8483
export const transactionInBlockRange = `
8584
SELECT

0 commit comments

Comments
 (0)