Skip to content

Commit

Permalink
await connection.send method
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura committed May 29, 2019
1 parent e485119 commit 882aedd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default class Web3EthereumProvider extends AbstractSocketProvider {
* @returns {Promise<Object>}
*/
async send(method, parameters) {
const response = this.connection.send(method, parameters);
const response = await this.connection.send(method, parameters);
const validationResult = JsonRpcResponseValidator.validate(response);

if (validationResult instanceof Error) {
Expand Down

0 comments on commit 882aedd

Please sign in to comment.