Skip to content

Commit 4c03fa1

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,8 @@ IpcProvider.prototype.send = function (payload, callback) {
209209
if(!this.connection.writable)
210210
this.connection.connect({path: this.path});
211211

212-
213-
this.connection.write(JSON.stringify(payload));
214212
this._addResponseCallback(payload, callback);
213+
this.connection.write(JSON.stringify(payload));
215214
};
216215

217216
/**

0 commit comments

Comments
 (0)