Closed mariano-aguero closed 6 years ago
Merging #1071 into 2.0-steps-integration will not change security risk.
Clean: 1
@mariano-aguero Minted/Dutch-Step2: data losed after refreshing if any field is empty
https://www.useloom.com/share/84b3389adf20463e8a2ec25550eace50
@mariano-aguero
Minted- Step2: button clear all
doesn't clear reserved addresses
https://www.useloom.com/share/4ca437c75b254eda821f42f6ff9db8e1
@mariano-aguero Data from Minted passed to Dutch. Steps:
Minted
, go to Step2back
Dutch
, click continue
decimals
field is disabled
https://www.useloom.com/share/6ba8bd970bab40168b4b875788e076fb@dennis00010011b
Minted/Dutch-Step2: data losed after refreshing if any field is empty
Can you execute npm i
in the terminal ?
I think a new package is missing, in my computer:
https://www.useloom.com/share/dd2764271ce242a9b822604d369c9362
@dennis00010011b
Minted- Step2: button clear all doesn't clear reserved addresses
Fixed
@dennis00010011b
Data from Minted passed to Dutch. Steps:
Select Minted, go to Step2 Fill out all fields, add reserved address Press button back Select Dutch, click continue Observe fields, decimals field is disabled
Fix input decimals, I check the strategy selected See video https://www.useloom.com/share/353383626685438e87f033bc2325388e
@mariano-aguero Data still passed from Minted to Dutch and vice versa. See screenshot: possible situation when decimals =0 but reserved address has fractional value of tokens.
Minted/Dutch-Step2: data lost after refreshing if any field is empty
Can you execute npm i in the terminal ? I think a new package is missing, in my computer:
I tested after npm i
. Issue still reproducible.
I want to clarify: data lost after refresh if at least one field empty in Step2:
@dennis00010011b
I tested after npm i. Issue still reproducible. I want to clarify: data lost after refresh if at least one field empty in Step2: Minted: name or ticker field Dutch: name or ticker field, or supply=0
I change how isEmpty
function works, Done!
@dennis00010011b
Data still passed from Minted to Dutch and vice versa. See screenshot: possible situation when decimals =0 but reserved address has fractional value of tokens.
Can you test again? The above change should affect the behavior. The decimals field is disabled if already exists reserved tokens (business rule)
@mariano-aguero
Minted/Dutch-Step2: data lost after refreshing if any field is empty
It fixed.
Data still passed from Minted to Dutch and vice versa. See screenshot: possible situation when decimals =0 but reserved address has fractional value of tokens.
Issue still here. Steps for reproduce:
Actual result:
Expected result:
Great report @dennis00010011b ! i will check it right now
Issue still here. Steps for reproduce: In Step 1 select Minted, go to Step 2. Fill out fields name, ticker with any valid data. Set decimals = 10. Add any reserved address with value 0.123456789 tokens Go back to Step1. Select Dutch, open Step2 Set decimals = 0 Go back to Step1. Select Minted, go to Step 2. Actual result: token is not divisible (decimals=0) but reserved address should receive value <1 token Expected result: should be validation:decimals of reserved value should not exceed the amount of decimals specified
I create a function to cap decimals in this situation, can you checked @dennis00010011b ?
@fernandomg
A behavior I'm not sure is worth considering in this PR... but will just leave it here for the record...
Fixed
@mariano-aguero It is rare user's behavior but it leads to crash
User able to enter invalid value of decimals
Steps:
Actual result: wizard failed with error message https://www.useloom.com/share/2c4860f44dbb402cad064c83582be7d9
@dennis00010011b
It is rare user's behavior but it leads to crash
Apply BigNumber and fixed
Tested it. No issues were found
Updated with changes from branch 2.0
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/utils/blockchainHelpers.js | 0 | 1 | 0.0% | ||
src/App.js | 0 | 2 | 0.0% | ||
src/stores/TokenStore.js | 0 | 2 | 0.0% | ||
src/components/stepTwo/index.js | 0 | 4 | 0.0% | ||
src/components/stepTwo/StepTwoForm.js | 6 | 10 | 60.0% | ||
src/utils/utils.js | 0 | 4 | 0.0% | ||
src/stores/ReservedTokenStore.js | 0 | 8 | 0.0% | ||
src/components/Home/index.js | 0 | 14 | 0.0% | ||
src/components/stepOne/index.js | 0 | 14 | 0.0% | ||
<!-- | Total: | 52 | 105 | 49.52% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
src/App.js | 1 | 0.0% | ||
src/components/stepOne/index.js | 3 | 0.0% | ||
src/components/Home/index.js | 3 | 0.0% | ||
<!-- | Total: | 7 | --> |
Totals | |
---|---|
Change from base Build 2862: | 0.2% |
Covered Lines: | 872 |
Relevant Lines: | 3617 |
@mariano-aguero please get upstream from 2.0 branch
@vbaranov
please get upstream from 2.0 branch
Updated
This is an integration PR for the step 2.
How to test it and what to test: