Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Fix requestId naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Jacobs committed Sep 20, 2017
1 parent 31cb5be commit 9deac99
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions js/src/api/contract/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ export default class Contract {

return this._api.parity
.postTransaction(encodedOptions)
.then((result) => {
if (result.length !== 66) {
statecb(null, { state: 'checkRequest', result });
return this._pollCheckRequest(result);
} else { return result; }
.then((requestId) => {
if (requestId.length !== 66) {
statecb(null, { state: 'checkRequest', requestId });
return this._pollCheckRequest(requestId);
} else { return requestId; }
})
.then((txhash) => {
statecb(null, { state: 'getTransactionReceipt', txhash });
Expand Down

0 comments on commit 9deac99

Please sign in to comment.