@@ -261,7 +261,7 @@ describe('Eth calls using MirrorNode', async function () {
261261
262262 const defaultLogs1 = [
263263 {
264- "address" : "0x0000000000000000000000000000000002131951 " ,
264+ "address" : "0x67D8d32E9Bf1a9968a5ff53B87d777Aa8EBBEe69 " ,
265265 "bloom" : logBloom1 ,
266266 "contract_id" : contractId1 ,
267267 "data" : "0x" ,
@@ -275,7 +275,7 @@ describe('Eth calls using MirrorNode', async function () {
275275 "transaction_index" : 1
276276 } ,
277277 {
278- "address" : "0x0000000000000000000000000000000002131951 " ,
278+ "address" : "0x67D8d32E9Bf1a9968a5ff53B87d777Aa8EBBEe69 " ,
279279 "bloom" : logBloom2 ,
280280 "contract_id" : contractId1 ,
281281 "data" : "0x" ,
@@ -292,7 +292,7 @@ describe('Eth calls using MirrorNode', async function () {
292292
293293 const defaultLogs2 = [
294294 {
295- "address" : "0x0000000000000000000000000000000002131951 " ,
295+ "address" : "0x67D8d32E9Bf1a9968a5ff53B87d777Aa8EBBEe69 " ,
296296 "bloom" : logBloom3 ,
297297 "contract_id" : contractId1 ,
298298 "data" : "0x" ,
@@ -309,7 +309,7 @@ describe('Eth calls using MirrorNode', async function () {
309309
310310 const defaultLogs3 = [
311311 {
312- "address" : "0x0000000000000000000000000000000002131951 " ,
312+ "address" : "0x67D8d32E9Bf1a9968a5ff53B87d777Aa8EBBEe69 " ,
313313 "bloom" : logBloom4 ,
314314 "contract_id" : contractId2 ,
315315 "data" : "0x" ,
@@ -326,7 +326,7 @@ describe('Eth calls using MirrorNode', async function () {
326326
327327 const defaultLogs4 = [
328328 {
329- "address" : "0x0000000000000000000000000000000002131951 " ,
329+ "address" : "0x67D8d32E9Bf1a9968a5ff53B87d777Aa8EBBEe69 " ,
330330 "bloom" : logBloom4 ,
331331 "contract_id" : contractId2 ,
332332 "data" : "0x" ,
@@ -1679,15 +1679,15 @@ describe('Eth calls using MirrorNode', async function () {
16791679 it ( 'should be able to return more than two logs with limit of two per request' , async function ( ) {
16801680 const unfilteredLogs = {
16811681 logs : [
1682- { ...defaultLogs . logs [ 0 ] , address : "0x0000000000000000000000000000000002131951 " } ,
1682+ { ...defaultLogs . logs [ 0 ] , address : "0x67D8d32E9Bf1a9968a5ff53B87d777Aa8EBBEe69 " } ,
16831683 { ...defaultLogs . logs [ 1 ] , address : "0x0000000000000000000000000000000002131952" } ,
16841684 { ...defaultLogs . logs [ 2 ] , address : "0x0000000000000000000000000000000002131953" } ,
16851685 { ...defaultLogs . logs [ 3 ] , address : "0x0000000000000000000000000000000002131954" }
16861686 ]
16871687 }
16881688 const filteredLogs = {
16891689 logs : [
1690- { ...defaultLogs . logs [ 0 ] , address : "0x0000000000000000000000000000000002131951 " } ,
1690+ { ...defaultLogs . logs [ 0 ] , address : "0x67D8d32E9Bf1a9968a5ff53B87d777Aa8EBBEe69 " } ,
16911691 { ...defaultLogs . logs [ 1 ] , address : "0x0000000000000000000000000000000002131952" }
16921692 ] ,
16931693 links : { next : 'contracts/results/logs?limit=2&order=desc×tamp=lte:1668432962.375200975&index=lt:0' }
@@ -1739,24 +1739,6 @@ describe('Eth calls using MirrorNode', async function () {
17391739 expect ( result [ 0 ] . address ) . to . eq ( defaultEvmAddress ) ;
17401740 } ) ;
17411741
1742- it ( 'Should cache contracts/contractIdOrAddress request' , async function ( ) {
1743- mock . onGet ( "blocks?limit=1&order=desc" ) . reply ( 200 , { blocks : [ defaultBlock ] } ) ;
1744- mock . onGet ( `contracts/results/logs?timestamp=gte:${ defaultBlock . timestamp . from } ×tamp=lte:${ defaultBlock . timestamp . to } &limit=100&order=asc` ) . reply ( 200 , defaultLogs ) ;
1745- mock . onGet ( `contracts/${ defaultLogs . logs [ 0 ] . address } ` ) . replyOnce ( 200 , defaultContract ) ; // This mock will fire only once, if the request is not cached, the test will fail with no mock error
1746-
1747- const result = await ethImpl . getLogs ( null , null , null , null , null ) ;
1748-
1749- expect ( cache . keyList . includes ( 'getLogEvmAddress.0x0000000000000000000000000000000002131951' ) ) . to . be . true ;
1750-
1751- expect ( result ) . to . exist ;
1752- expect ( result . length ) . to . eq ( 4 ) ;
1753-
1754- expectLogData1 ( result [ 0 ] ) ;
1755- expectLogData2 ( result [ 1 ] ) ;
1756- expectLogData3 ( result [ 2 ] ) ;
1757- expectLogData4 ( result [ 3 ] ) ;
1758- } ) ;
1759-
17601742 it ( 'address filter' , async function ( ) {
17611743 const filteredLogs = {
17621744 logs : [ defaultLogs . logs [ 0 ] , defaultLogs . logs [ 1 ] , defaultLogs . logs [ 2 ] ]
0 commit comments