diff --git a/js/src/api/contract/contract.js b/js/src/api/contract/contract.js index dee4d6d777b..bffa19f402d 100644 --- a/js/src/api/contract/contract.js +++ b/js/src/api/contract/contract.js @@ -133,9 +133,11 @@ export default class Contract { return this._api.parity .postTransaction(encodedOptions) - .then((requestId) => { - statecb(null, { state: 'checkRequest', requestId }); - return this._pollCheckRequest(requestId); + .then((result) => { + if (result.length !== 66) { + statecb(null, { state: 'checkRequest', result }); + return this._pollCheckRequest(result); + } else { return result; } }) .then((txhash) => { statecb(null, { state: 'getTransactionReceipt', txhash });