eip-1193 fix

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
andrey 2020-08-08 14:42:48 +02:00
parent 68722340c9
commit f9fb4d6974
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
1 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@
}
else
{
callback.resolve(data.result);
callback.resolve(data.result.result);
}
}
else if (callback.results)
@ -183,7 +183,7 @@
var syncResponse = getSyncResponse({method: method});
if (syncResponse){
return new Promise(function (resolve, reject) {
resolve(syncResponse);
resolve(syncResponse.result);
});
}