From 9e81f7d76db7e08a844cfd41e5b4affff62cacc2 Mon Sep 17 00:00:00 2001 From: Diego Figueroa Date: Thu, 4 Apr 2024 08:24:47 -0400 Subject: [PATCH] fix: ensure deprecated signer processing does not include keys --- .../src/processors/UserProcessor.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/plugins/blockchainradar-backend/src/processors/UserProcessor.ts b/plugins/blockchainradar-backend/src/processors/UserProcessor.ts index 3d58548..f65be24 100644 --- a/plugins/blockchainradar-backend/src/processors/UserProcessor.ts +++ b/plugins/blockchainradar-backend/src/processors/UserProcessor.ts @@ -77,13 +77,15 @@ export class UserProcessor extends BlockchainProcessor { logger.debug(`${entity.metadata.name} fetching deprecated addresses`); const deprecatedSigners = ( await Promise.all( - deprecated.map(ref => { - return BlockchainFactory.fromUserSpecifiedAddress( - this, - ref, - entity, - ); - }), + deprecated + .filter(entry => !entry.includes('ed25519:')) + .map(ref => { + return BlockchainFactory.fromUserSpecifiedAddress( + this, + ref, + entity, + ); + }), ) ).filter(addr => addr.role === 'signer'); const deprecatedAddresses = deprecatedSigners.map(s => s.address);