diff --git a/src/transports/MetaMaskTransport.ts b/src/transports/MetaMaskTransport.ts index ac4f31e..2ec79ae 100644 --- a/src/transports/MetaMaskTransport.ts +++ b/src/transports/MetaMaskTransport.ts @@ -9,7 +9,7 @@ class MetaMaskTransport extends Transport { this.uri = uri; } public async connect(): Promise { - const results = await (window as any).ethereum.send({ + const results = await (window as any).ethereum.request({ method: "wallet_enable", params: [{ [this.uri]: {}, @@ -19,7 +19,7 @@ class MetaMaskTransport extends Transport { } public async sendData(data: JSONRPCRequestData, timeout: number | undefined = 5000): Promise { - return (window as any).ethereum.send({ + return (window as any).ethereum.request({ method: this.uri, params: [ (data as IJSONRPCData).request,