Skip to content

Commit

Permalink
fix: ensure deprecated signer processing does not include keys
Browse files Browse the repository at this point in the history
  • Loading branch information
diegofigs committed Apr 4, 2024
1 parent df8befe commit 9e81f7d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions plugins/blockchainradar-backend/src/processors/UserProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9e81f7d

Please sign in to comment.