Skip to content

Commit 183e143

Browse files
web3#1 wrong order fix
Causing endless wait for for tx receipt/hash
1 parent 326e42f commit 183e143

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/web3-providers-ws/src/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ WebsocketProvider.prototype.send = function (payload, callback) {
276276
callback(new Error('connection not open'));
277277
return;
278278
}
279-
280-
this.connection.send(JSON.stringify(payload));
279+
281280
this._addResponseCallback(payload, callback);
281+
this.connection.send(JSON.stringify(payload));
282282
};
283283

284284
/**

0 commit comments

Comments
 (0)