Skip to content

Commit 6099c79

Browse files
update getAssetSignatures test
1 parent 225b98f commit 6099c79

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

clients/js/test/getAssetSignatures.test.ts

+5-18
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,26 @@ DAS_API_ENDPOINTS.forEach((endpoint) => {
77
test(`it can fetch the signatures of a compressed asset by ID (${endpoint.name})`, async (t) => {
88
// Given a minted NFT on mainnet.
99
const umi = createUmi(endpoint.url);
10-
const assetId = publicKey('GGRbPQhwmo3dXBkJSAjMFc1QYTKGBt8qc11tTp3LkEKA');
10+
const assetId = publicKey('DNzerLDcC5apcAQQ2Wx3qfRK1NPP6g5Bsg11fPpWkRtA');
1111

1212
// When we fetch the Signatures for the asset.
1313
const signatures = await umi.rpc.getAssetSignatures({ assetId });
1414

1515
// Then we expect to find 2 signatures.
16-
t.is(signatures.total, 2);
16+
t.is(signatures.total, 1);
1717
t.is(signatures.limit, 1000);
18-
t.is(signatures.items.length, 2);
1918
t.like(signatures.items[0], <DasApiTransactionSignature>{
2019
signature:
21-
'3Ki9QJTC2V1oNhkkhvJAJ4DEBRdMMrvKqctsyPhGL5JGkZz72xAsgTQh4vAEuJNtkxTxdmWg7RhkSXwU2JNRdSVh',
20+
'2LzGEe1JZcf5SqtGhajrusvfRWSeL3Fm4sduQC1gbfPgMyQySf2tqS1yU5yTiHEutdUZkswHXHg6zzyjK6Vg92GA',
2221
instruction: 'MintToCollectionV1',
2322
slot: 356098299,
2423
});
25-
t.like(signatures.items[1], <DasApiTransactionSignature>{
26-
signature:
27-
'4rNhZukEBfuGxWxesRgStu1PqvStycu1fhNiftXVUcCygazXLpz6BubNCMywBW9eQLKtLa58FSqgyjDxHSTuFYy8',
28-
instruction: 'CreateTree',
29-
slot: 356098214,
30-
});
3124
});
3225

3326
test(`it can fetch the signatures of a compressed asset by leaf index and tree (${endpoint.name})`, async (t) => {
3427
// Given a minted NFT on mainnet.
3528
const umi = createUmi(endpoint.url);
36-
const tree = publicKey('J1imb8C8SPzofrtgCxkN4nsKwHevzxgvHGeYBKFEDEmE');
29+
const tree = publicKey('Hw2qE4TKe8rt3VGWupLEH7wZtTrbBAzuU7LWBXfhGNMJ');
3730
const leaf_index = 0;
3831
// When we fetch the Signatures for the asset.
3932
const signatures = await umi.rpc.getAssetSignatures({ tree, leaf_index });
@@ -44,15 +37,9 @@ DAS_API_ENDPOINTS.forEach((endpoint) => {
4437
t.is(signatures.items.length, 2);
4538
t.like(signatures.items[0], <DasApiTransactionSignature>{
4639
signature:
47-
'3Ki9QJTC2V1oNhkkhvJAJ4DEBRdMMrvKqctsyPhGL5JGkZz72xAsgTQh4vAEuJNtkxTxdmWg7RhkSXwU2JNRdSVh',
40+
'2LzGEe1JZcf5SqtGhajrusvfRWSeL3Fm4sduQC1gbfPgMyQySf2tqS1yU5yTiHEutdUZkswHXHg6zzyjK6Vg92GA',
4841
instruction: 'MintToCollectionV1',
4942
slot: 356098299,
5043
});
51-
t.like(signatures.items[1], <DasApiTransactionSignature>{
52-
signature:
53-
'4rNhZukEBfuGxWxesRgStu1PqvStycu1fhNiftXVUcCygazXLpz6BubNCMywBW9eQLKtLa58FSqgyjDxHSTuFYy8',
54-
instruction: 'CreateTree',
55-
slot: 356098214,
56-
});
5744
});
5845
});

0 commit comments

Comments
 (0)