mirror of
https://github.com/lil-org/tokenary.git
synced 2025-01-07 14:10:28 +03:00
Ethereum provider disconnect
This commit is contained in:
parent
9a22f6a008
commit
bbea7b746f
File diff suppressed because one or more lines are too long
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user