From 9ea86b77cc7129f383cdf9af9a1d7e240c38f127 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 21 Jul 2024 17:06:14 +0530 Subject: [PATCH] Automated lint (#1538) Co-authored-by: ChaituVR --- .../index.ts | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/strategies/rocketpool-node-operator-delegate-v7/index.ts b/src/strategies/rocketpool-node-operator-delegate-v7/index.ts index 9806c34f8..4e851d2bf 100644 --- a/src/strategies/rocketpool-node-operator-delegate-v7/index.ts +++ b/src/strategies/rocketpool-node-operator-delegate-v7/index.ts @@ -43,7 +43,9 @@ export async function strategy( const signerRegistryResponse: Record = await signerRegistry.execute(); - const addressMap: Map = new Map(resp.map(obj => [getAddress(obj.address), obj])); + const addressMap: Map = new Map( + resp.map((obj) => [getAddress(obj.address), obj]) + ); const nodeData = addresses.map((address) => { const nodeAddress = getAddress(signerRegistryResponse[address]); @@ -51,8 +53,11 @@ export async function strategy( return { signallingAddress: address, nodeAddress: nodeAddress, - delegators: node && node.delegators.length > 0 ? node.delegators.map((d) => getAddress(d.address)) : [nodeAddress], - } + delegators: + node && node.delegators.length > 0 + ? node.delegators.map((d) => getAddress(d.address)) + : [nodeAddress] + }; }); const delegations: Record = Object.fromEntries( @@ -74,8 +79,12 @@ export async function strategy( return Object.fromEntries( addresses.map((address) => { - const addressData = nodeData.find((node) => node.signallingAddress === address); - if (addressData.nodeAddress === "0x0000000000000000000000000000000000000000") { + const addressData = nodeData.find( + (node) => node.signallingAddress === address + ); + if ( + addressData.nodeAddress === '0x0000000000000000000000000000000000000000' + ) { return [address, 0]; } const delegators = addressData.delegators;