From f6d0a1a48965a51360d22475a24ed22768cacfb6 Mon Sep 17 00:00:00 2001 From: Kylan Hurt Date: Thu, 10 Oct 2024 17:09:09 -0500 Subject: [PATCH] chore: Revert "chore(js-ts): Convert app/util/test/ganache-contract-address-registry.js to TypeScript" (#11746) Reverts MetaMask/metamask-mobile#11406 --- ...ess-registry.ts => ganache-contract-address-registry.js} | 6 +++--- locales/languages/en.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename app/util/test/{ganache-contract-address-registry.ts => ganache-contract-address-registry.js} (77%) diff --git a/app/util/test/ganache-contract-address-registry.ts b/app/util/test/ganache-contract-address-registry.js similarity index 77% rename from app/util/test/ganache-contract-address-registry.ts rename to app/util/test/ganache-contract-address-registry.js index 517f5c0e613..5659401a236 100644 --- a/app/util/test/ganache-contract-address-registry.ts +++ b/app/util/test/ganache-contract-address-registry.js @@ -3,7 +3,7 @@ * a local blockchain instance ran by Ganache. */ class GanacheContractAddressRegistry { - #addresses: Record = {}; + #addresses = {}; /** * Store new contract address in key:value pair. @@ -11,7 +11,7 @@ class GanacheContractAddressRegistry { * @param contractName * @param contractAddress */ - storeNewContractAddress(contractName: string, contractAddress: string) { + storeNewContractAddress(contractName, contractAddress) { this.#addresses[contractName] = contractAddress; } @@ -20,7 +20,7 @@ class GanacheContractAddressRegistry { * * @param contractName */ - getContractAddress(contractName: string) { + getContractAddress(contractName) { return this.#addresses[contractName]; } } diff --git a/locales/languages/en.json b/locales/languages/en.json index b439f1cd1d4..7bb7eb9a577 100644 --- a/locales/languages/en.json +++ b/locales/languages/en.json @@ -3429,4 +3429,4 @@ "network": "Network", "rpc_url": "RPC URL" } -} \ No newline at end of file +}