Skip to content

Commit

Permalink
Merge pull request #2854 from LukeSugiura/hotfix/web3-eth-provider
Browse files Browse the repository at this point in the history
Assign correct JSON-RPC response to validate on Web3EthereumProvider.send method
  • Loading branch information
nivida authored May 30, 2019
2 parents e51575a + b25333c commit 9edeea0
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 9edeea0

Please sign in to comment.