Ethereum provider disconnect

This commit is contained in:
Ivan Grachev 2022-08-23 14:03:15 +03:00
parent 9a22f6a008
commit bbea7b746f
2 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -54,7 +54,9 @@ class TokenaryEthereum extends EventEmitter {
}
externalDisconnect() {
console.log("yo implement ethereum disconnect");
this.setAddress("");
window.ethereum.emit("disconnect");
window.ethereum.emit("accountsChanged", []);
}
setAddress(address) {