[#11703] No way to sign in to opensea

This commit is contained in:
andrey 2021-02-02 11:52:49 +01:00
parent 6d38386c11
commit c76567c20f
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
1 changed files with 6 additions and 0 deletions

View File

@ -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);