Allow WalletConnect to change accounts and network
modified src/config.ts
@@ -7,6 +7,7 @@ import { Core } from '@self.id/core';
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -129,6 +130,10 @@ export class Config {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -210,7 +215,7 @@ export class Config {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/session.ts
@@ -2,9 +2,8 @@ import { get, writable, derived } from "svelte/store";
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
|
|
|
|
|
@@ -105,12 +104,34 @@ export const loadState = (initial: State): Store => {
|
|
|
|
|
|
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -245,15 +266,18 @@ window.ethereum?.on('chainChanged', () => {
|
|
|
|
|
|
| - | |
|
|
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/utils.ts
@@ -107,15 +107,6 @@ export function formatHash(hash: string): string {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|