Support switching Ethereum chain early

This commit is contained in:
Ivan Grachev 2022-08-29 23:32:27 +03:00
parent 23f4e9f245
commit 1ee7c14206
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -377,7 +377,7 @@ class TokenaryEthereum extends EventEmitter {
}
postMessage(handler, id, data) {
if (this.ready || handler === "requestAccounts") {
if (this.ready || handler === "requestAccounts" || handler === "switchEthereumChain" || handler === "addEthereumChain") {
let object = {
object: data,
address: this.address,