Skip to content

Commit

Permalink
web3#1 wrong order fix
Browse files Browse the repository at this point in the history
Causing endless wait for for tx receipt/hash
  • Loading branch information
greg-flexidao committed Sep 13, 2018
1 parent 326e42f commit 183e143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web3-providers-ws/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,9 @@ WebsocketProvider.prototype.send = function (payload, callback) {
callback(new Error('connection not open'));
return;
}

this.connection.send(JSON.stringify(payload));

this._addResponseCallback(payload, callback);
this.connection.send(JSON.stringify(payload));
};

/**
Expand Down

0 comments on commit 183e143

Please sign in to comment.