* Fix #6540 - just skip the checkRequest call if result of postTransaction is a tx ID * Fix requestId naming
This commit is contained in:
parent
65ca9afce2
commit
9e0d2c15cd
@ -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 });
|
||||
|
Loading…
Reference in New Issue
Block a user