[#11703] No way to sign in to opensea
This commit is contained in:
parent
6d38386c11
commit
c76567c20f
|
@ -232,6 +232,12 @@
|
||||||
// (DEPRECATED) Support for legacy sendAsync method
|
// (DEPRECATED) Support for legacy sendAsync method
|
||||||
EthereumProvider.prototype.sendAsync = function (payload, callback)
|
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);
|
var syncResponse = getSyncResponse(payload);
|
||||||
if (syncResponse && callback) {
|
if (syncResponse && callback) {
|
||||||
callback(null, syncResponse);
|
callback(null, syncResponse);
|
||||||
|
|
Loading…
Reference in New Issue