Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interact with contracts flow #2888

Merged
merged 57 commits into from
Dec 16, 2019

Conversation

PeterZlodej
Copy link
Contributor

[ch2490]
[ch3419]
[ch3412]
[ch3413]
[ch3420]
[ch3422]

PeterZlodej and others added 30 commits October 29, 2019 08:10
@mycrypto-bot
Copy link
Collaborator

Staging build: MyCryptoBuilds

@coveralls
Copy link

coveralls commented Dec 5, 2019

Coverage Status

Coverage increased (+0.03%) to 48.075% when pulling 7bbd9be on PeterZlodej:interact-with-contracts-flow into 5837a04 on MyCryptoHQ:master.

Copy link
Collaborator

@blurpesec blurpesec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the Read / Write Contract dropdown, if there are a lot of selections it can overflow the end of the page and expand it past the footer. Not sure how we expect to this act:
image

@PeterZlodej PeterZlodej marked this pull request as ready for review December 9, 2019 07:29
@blurpesec blurpesec self-requested a review December 9, 2019 23:26
Copy link
Collaborator

@blurpesec blurpesec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't experienced any usability issues with this after using it for a while to do random things.

common/v2/services/Store/Contract/ContractProvider.tsx Outdated Show resolved Hide resolved
common/v2/services/ApiService/Etherscan/constants.ts Outdated Show resolved Hide resolved
common/v2/features/InteractWithContracts/helpers.ts Outdated Show resolved Hide resolved
common/v2/features/InteractWithContracts/stateFactory.tsx Outdated Show resolved Hide resolved
common/v2/features/InteractWithContracts/stateFactory.tsx Outdated Show resolved Hide resolved
common/v2/features/InteractWithContracts/stateFactory.tsx Outdated Show resolved Hide resolved
common/v2/features/InteractWithContracts/stateFactory.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@vilsbole vilsbole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last week I've been encountering this bug.
Cannot set state on an unmounted component
https://www.robinwieruch.de/react-warning-cant-call-setstate-on-an-unmounted-component
This happens when, in an Effect we wait for a Promise then call setState.

I've been solving this issue by using the usePromise pattern which I copie into the project.
I'm merging this now and we can use the new hooks once they are accepted

@vilsbole vilsbole merged commit 51fa33a into MyCryptoHQ:master Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants