Update @parity/* packages & fix #298#274
Conversation
|
:( I think this is blocked by #212. react-script@1 can't minify debug@4 (which I updated from debug@3 because of vulnerabilities). |
|
Will reopen once #212 is done |
4e7f061 to
0ef1f38
Compare
|
Added a fix to fix #298. |
i just fetched a copy of this branch using the latest Node.js v10.14.2 The error is triggered because once a valid amount and recipient address have been entered it calls If we're sending Ether and we enter a value of 1 Wei then When the It then checks if the amount is an integer, and if it isn't it crashes with the error https://github.com/paritytech/js-libs/blob/master/packages/api/src/format/input.ts#L145 Note: |
packages/fether-react/package.json
Outdated
| "@parity/light.js": "^1.0.9", | ||
| "@parity/light.js-react": "^1.0.0", | ||
| "@parity/api": "^3.0.10", | ||
| "@parity/contracts": "^3.0.10", |
There was a problem hiding this comment.
@parity/contracts is at 3.0.11 https://www.npmjs.com/package/@parity/contracts
packages/fether-react/package.json
Outdated
| "@parity/light.js-react": "^1.0.0", | ||
| "@parity/api": "^3.0.10", | ||
| "@parity/contracts": "^3.0.10", | ||
| "@parity/light.js": "^3.0.10", |
There was a problem hiding this comment.
@parity/light.js is at 3.0.11 https://www.npmjs.com/package/@parity/light.js
packages/fether-react/package.json
Outdated
| "@parity/api": "^3.0.10", | ||
| "@parity/contracts": "^3.0.10", | ||
| "@parity/light.js": "^3.0.10", | ||
| "@parity/light.js-react": "^3.0.10", |
There was a problem hiding this comment.
@parity/light.js-react is at 3.0.11 https://www.npmjs.com/package/@parity/light.js-react
|
@ltfschoen Ah yes, you're totally right about the inNumber16, it should be |
| values.gas | ||
| .mul(toWei(values.gasPrice, 'shannon')) | ||
| .multipliedBy(toWei(values.gasPrice, 'shannon')) | ||
| .plus(token.address === 'ETH' ? toWei(values.amount) : 0) |
There was a problem hiding this comment.
token.address(i.e. 0x005072Fb985cc64d8A1Ce00ECe26279f73c12F8a) should be token.symbol (i.e. ETH)
There was a problem hiding this comment.
No, token.address is an unique field, whereas token.symbol might not be. We consider in Fether Ethereum as a token, to factorize some code.
Edit: Apparently this creates more confusion then solves problem. A better idea is probably to rename to token.id everywhere (where token.id = 'ETH' | address)
There was a problem hiding this comment.
i see what you mean, i think it makes sense the way you've done it then
|
@Tbaut multiple issues:
|
|
|
@amaurymartiny @Tbaut LGTM! |
|
Can you add your green mark? I'll do a full test with DL of the headers just to make sure we didn't break anything. |
|
Correct, I forgot one multipliedBy |
|
Can this be merged? Someone else wants to give a review? |







No feature change, no code change.@parity/*packages just had some internal reorg.Edit: now also fixes #298