@@ -7,33 +7,26 @@ DAS_API_ENDPOINTS.forEach((endpoint) => {
7
7
test ( `it can fetch the signatures of a compressed asset by ID (${ endpoint . name } )` , async ( t ) => {
8
8
// Given a minted NFT on mainnet.
9
9
const umi = createUmi ( endpoint . url ) ;
10
- const assetId = publicKey ( 'GGRbPQhwmo3dXBkJSAjMFc1QYTKGBt8qc11tTp3LkEKA ' ) ;
10
+ const assetId = publicKey ( 'DNzerLDcC5apcAQQ2Wx3qfRK1NPP6g5Bsg11fPpWkRtA ' ) ;
11
11
12
12
// When we fetch the Signatures for the asset.
13
13
const signatures = await umi . rpc . getAssetSignatures ( { assetId } ) ;
14
14
15
15
// Then we expect to find 2 signatures.
16
- t . is ( signatures . total , 2 ) ;
16
+ t . is ( signatures . total , 1 ) ;
17
17
t . is ( signatures . limit , 1000 ) ;
18
- t . is ( signatures . items . length , 2 ) ;
19
18
t . like ( signatures . items [ 0 ] , < DasApiTransactionSignature > {
20
19
signature :
21
- '3Ki9QJTC2V1oNhkkhvJAJ4DEBRdMMrvKqctsyPhGL5JGkZz72xAsgTQh4vAEuJNtkxTxdmWg7RhkSXwU2JNRdSVh ' ,
20
+ '2LzGEe1JZcf5SqtGhajrusvfRWSeL3Fm4sduQC1gbfPgMyQySf2tqS1yU5yTiHEutdUZkswHXHg6zzyjK6Vg92GA ' ,
22
21
instruction : 'MintToCollectionV1' ,
23
22
slot : 356098299 ,
24
23
} ) ;
25
- t . like ( signatures . items [ 1 ] , < DasApiTransactionSignature > {
26
- signature :
27
- '4rNhZukEBfuGxWxesRgStu1PqvStycu1fhNiftXVUcCygazXLpz6BubNCMywBW9eQLKtLa58FSqgyjDxHSTuFYy8' ,
28
- instruction : 'CreateTree' ,
29
- slot : 356098214 ,
30
- } ) ;
31
24
} ) ;
32
25
33
26
test ( `it can fetch the signatures of a compressed asset by leaf index and tree (${ endpoint . name } )` , async ( t ) => {
34
27
// Given a minted NFT on mainnet.
35
28
const umi = createUmi ( endpoint . url ) ;
36
- const tree = publicKey ( 'J1imb8C8SPzofrtgCxkN4nsKwHevzxgvHGeYBKFEDEmE ' ) ;
29
+ const tree = publicKey ( 'Hw2qE4TKe8rt3VGWupLEH7wZtTrbBAzuU7LWBXfhGNMJ ' ) ;
37
30
const leaf_index = 0 ;
38
31
// When we fetch the Signatures for the asset.
39
32
const signatures = await umi . rpc . getAssetSignatures ( { tree, leaf_index } ) ;
@@ -44,15 +37,9 @@ DAS_API_ENDPOINTS.forEach((endpoint) => {
44
37
t . is ( signatures . items . length , 2 ) ;
45
38
t . like ( signatures . items [ 0 ] , < DasApiTransactionSignature > {
46
39
signature :
47
- '3Ki9QJTC2V1oNhkkhvJAJ4DEBRdMMrvKqctsyPhGL5JGkZz72xAsgTQh4vAEuJNtkxTxdmWg7RhkSXwU2JNRdSVh ' ,
40
+ '2LzGEe1JZcf5SqtGhajrusvfRWSeL3Fm4sduQC1gbfPgMyQySf2tqS1yU5yTiHEutdUZkswHXHg6zzyjK6Vg92GA ' ,
48
41
instruction : 'MintToCollectionV1' ,
49
42
slot : 356098299 ,
50
43
} ) ;
51
- t . like ( signatures . items [ 1 ] , < DasApiTransactionSignature > {
52
- signature :
53
- '4rNhZukEBfuGxWxesRgStu1PqvStycu1fhNiftXVUcCygazXLpz6BubNCMywBW9eQLKtLa58FSqgyjDxHSTuFYy8' ,
54
- instruction : 'CreateTree' ,
55
- slot : 356098214 ,
56
- } ) ;
57
44
} ) ;
58
45
} ) ;
0 commit comments