-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
It looks like @travs signed our Contributor License Agreement. 👍 Many thanks, Parity Technologies CLA Bot |
Not sure why I keep getting this failing build. |
Failures fixed in #6553 |
done |
- just skip the checkRequest call if result of postTransaction is a tx ID
Rebased and ready to merge (if it passes 🤞 ) |
js/src/api/contract/contract.js
Outdated
return this._pollCheckRequest(requestId); | ||
.then((result) => { | ||
if (result.length !== 66) { | ||
statecb(null, { state: 'checkRequest', result }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we lose the requestId
naming? This is is that the holder of the statecb checks the requestId
field which does not exist anywhere anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yeah that's my mistake, one sec I will revise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revised 9deac99
LGTM As for the parity.js repo, it will be removed in favour of the js-{abi, api} repos. (I do keep those updated from master, at this point they are direct match* for what is found there, in the short term they will become the only source of truth.)
|
@travs Will update the instructions. But basically, not published to npm (yet, we are busy working through that with CI, will be in the next week or so), so for now would just need to have a github package.json entry: (Also the way we use it atm with out next-generation UI until the package is published)
Then just use it as you would the normal parity.js, i.e.
|
Skips the
checkRequest
call if result ofpostTransaction
is a tx ID.If there is a better way to check whether
result
is a tx ID than looking at its length, let's do that.Made a similar PR over here, but I can't even get the module installed from that repo, and the latest changes are not as new as those in this repo, so it looks like this one makes more sense to merge to.