Allow WalletConnect to change accounts and network

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
Sebastian Martinez
2021-11-15 14:48:21 +01:00
parent 54df789c95
commit c5172b8cc5
3 changed files with 38 additions and 18 deletions
-9
View File
@@ -107,15 +107,6 @@ export function formatHash(hash: string): string {
+ hash.substring(hash.length - 4, hash.length);
}
export function formatNetwork(input: { name: string }): string {
let name = input.name;
if (name === "homestead") {
name = "mainnet";
}
return capitalize(name);
}
export function formatOrg(input: string, config: Config): string {
if (isAddress(input)) {
return ethers.utils.getAddress(input);