From 8d91e480c5bb7723de369ad13ad6527e372a0433 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Thu, 3 Jun 2021 15:28:10 +0200 Subject: [PATCH] Fix indentation --- src/utils.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 0d0a74aa1..ce214576c 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -127,16 +127,16 @@ export function formatProjectHash(hash: Uint8Array, format: number): string { // Identify an address by checking whether it's a contract or an externally-owned address. export async function identifyAddress(address: string, config: Config): Promise { - let code = await config.provider.getCode(address); - let bytes = ethers.utils.arrayify(code); + let code = await config.provider.getCode(address); + let bytes = ethers.utils.arrayify(code); - if (bytes.length > 0) { - if (ethers.utils.keccak256(bytes) === config.orgs.contractHash) { - return AddressType.Org; - } - return AddressType.Contract; + if (bytes.length > 0) { + if (ethers.utils.keccak256(bytes) === config.orgs.contractHash) { + return AddressType.Org; } - return AddressType.EOA; + return AddressType.Contract; + } + return AddressType.EOA; } // Resolve a label under the radicle domain.