mirror of
https://github.com/lil-org/tokenary.git
synced 2024-11-30 13:02:49 +03:00
Support switching Ethereum chain early
This commit is contained in:
parent
23f4e9f245
commit
1ee7c14206
File diff suppressed because one or more lines are too long
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user