mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Allow WalletConnect to change accounts and network
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user