diff --git a/src/data_handler.ts b/src/data_handler.ts index 28023c63e66f26e3da2f0cac119f72ebbfee2725..b32e577b04d83166d3b40ade7fd31640db86b490 100644 --- a/src/data_handler.ts +++ b/src/data_handler.ts @@ -477,7 +477,7 @@ export class DataHandler { this.data.identities.delete(i.index); // prevent from trying to add twice identities.push(idty); } - if (identities.length == 0) { + if (identities.length === 0) { return; } // we are sure that all created identities actually do not already exist in database diff --git a/src/giant-squid.ts b/src/giant-squid.ts index 6aa0b9edf7e045de5e033fb8ebae127ae013d574..a2867e87a6bfe2554685841cf724631bff459c89 100644 --- a/src/giant-squid.ts +++ b/src/giant-squid.ts @@ -48,7 +48,7 @@ export async function saveBlock(ctx: ProcessorContext<StoreWithCache>, block: Bl }); // We set the genesis timestamp based of first block timestamp - if (block.height == 1) { + if (block.height === 1) { const blockGenesis = await ctx.store.findOneByOrFail(model.Block, { height: 0 }); blockGenesis.timestamp = new Date(block.timestamp! - 6000); await ctx.store.upsert(blockGenesis); @@ -103,7 +103,7 @@ export async function saveCall(ctx: ProcessorContext<StoreWithCache>, call: Call block.callsCount += 1; await ctx.store.upsert(block); - if (call.address.length == 0) { + if (call.address.length === 0) { extrinsic.call = entity; await ctx.store.upsert(extrinsic); } diff --git a/src/main.ts b/src/main.ts index 8e82b1f00b20184e18526f7da1e92c1031b96eec..525b8772eb2840ee87f7fd0832cbc387f678d943 100644 --- a/src/main.ts +++ b/src/main.ts @@ -19,7 +19,7 @@ processor.run(new TypeormDatabaseWithCache(), async (ctx) => { // save the block header const genesisBlock = await saveBlock(ctx, header); // manage genesis state - if (header.height == 0) { + if (header.height === 0) { await saveGenesis(ctx, genesisBlock); } // save all extrinsics of the block