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