Skip to content

Commit

Permalink
chore: Revert "chore(js-ts): Convert app/util/test/ganache-contract-a…
Browse files Browse the repository at this point in the history
…ddress-registry.js to TypeScript" (#11746)

Reverts #11406
  • Loading branch information
kylanhurt authored Oct 10, 2024
1 parent 3173587 commit f6d0a1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
* a local blockchain instance ran by Ganache.
*/
class GanacheContractAddressRegistry {
#addresses: Record<string, string> = {};
#addresses = {};

/**
* Store new contract address in key:value pair.
*
* @param contractName
* @param contractAddress
*/
storeNewContractAddress(contractName: string, contractAddress: string) {
storeNewContractAddress(contractName, contractAddress) {
this.#addresses[contractName] = contractAddress;
}

Expand All @@ -20,7 +20,7 @@ class GanacheContractAddressRegistry {
*
* @param contractName
*/
getContractAddress(contractName: string) {
getContractAddress(contractName) {
return this.#addresses[contractName];
}
}
Expand Down
2 changes: 1 addition & 1 deletion locales/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3429,4 +3429,4 @@
"network": "Network",
"rpc_url": "RPC URL"
}
}
}

0 comments on commit f6d0a1a

Please sign in to comment.