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

Local Development Environment For Wallet #615

Merged
merged 3 commits into from
Apr 21, 2022
Merged

Conversation

IlyasRidhuan
Copy link
Contributor

This PR adds a local development environment for the wallet that now starts up using npm run start.

It does this using an environment variable REACT_APP_MODE- the prefix REACT_APP is a requirement for browser environments. This environment determines the list of tokens to be used in the wallet - supported-token-list.

Note that the value for the ERC20Mock is hardcoded for now, it will always be the same deployed address provided we do not make modifications to the deployment process we currently have. Doing this dynamically using getContractAddress from optimist is a possibility but ends up being messier due to the promise handling.

This PR also includes some eslint fixes and alias for some deep directories (reducing the unwieldiness of long ../../.. imports) as well as updates to the README.

To Test

  • npm ci
  • npm run start
  • When the browser starts, there should be a single token using the deployed ERC20Mock address.

@ChaitanyaKonda
Copy link
Contributor

After running the wallet up following all the instructions and I run into this error

Screenshot 2022-04-13 at 20 55 19

@Westlad Westlad self-requested a review April 21, 2022 14:39
@Westlad
Copy link
Contributor

Westlad commented Apr 21, 2022

Clearing indexDb, local storage and reseting the account in Metamask cleared the error for me.

@Westlad Westlad added One more approval needed One reviewer has approved this PR but another is needed Merge conflict labels Apr 21, 2022
@ChaitanyaKonda ChaitanyaKonda merged commit 5024a11 into master Apr 21, 2022
@ChaitanyaKonda ChaitanyaKonda deleted the wallet/local-dev branch April 21, 2022 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merge conflict One more approval needed One reviewer has approved this PR but another is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants