From c76567c20fcfb3b4cf70af09965cf84fb1ed4a93 Mon Sep 17 00:00:00 2001 From: andrey Date: Tue, 2 Feb 2021 11:52:49 +0100 Subject: [PATCH] [#11703] No way to sign in to opensea --- resources/js/provider.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/js/provider.js b/resources/js/provider.js index c046bcc44a..b16608353d 100644 --- a/resources/js/provider.js +++ b/resources/js/provider.js @@ -232,6 +232,12 @@ // (DEPRECATED) Support for legacy sendAsync method EthereumProvider.prototype.sendAsync = function (payload, callback) { + if (!payload) { + return new Error('Request is not valid.'); + } + if (payload.method == 'eth_requestAccounts'){ + return sendAPIrequest('web3'); + } var syncResponse = getSyncResponse(payload); if (syncResponse && callback) { callback(null, syncResponse);