1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00
🦊 Minimalized version of MetaMask for my own personal use.
Go to file
Dan Finlay c7233e2cc7
Fixed Vivek's bug (#5860)
* Fixed Vivek's bug

Fixes #5850

What was happening:

It seems that his MetaMask had crashed while some new transactions had
been loading defaults. He probably had a network connectivity issue to
Infura (which we are working with Infura to address).

As a result of this network cutout, his three unapproved transactions
were not marked failed, and were not marked as `loadingDefaults =
false`, as their gas prices had not yet been estimated.

Normally this behavior is supposed to clean itself up when the
transaction controller starts up, via the
`TransactionController._onBootCleanUp()` function, but in this case,
during unlock, that function was unable to do its job because when it
requested the transaction list, the current network was in the `loading`
state, making it proceed as if there were no pending transactions.

To fix this, I am doing two things:
- Setting transactions to loadingDefaults = false in more catch blocks.
- Calling `onBootCleanUp()` when the network store's status changes, so
that it will re-trigger when loading completes.

* Fixed reference

* Fixed infinite loop bug

Was refreshing the tx list on every tx state change instead of just
network changes, creating an infinite loop.

* Add notes to tx updates to clarify logs
2018-11-29 16:08:03 -08:00
.circleci ci: Drop old UI e2e tests from CircleCI 2018-11-20 14:04:50 -03:30
.github encourage stackexchange in issue templates (#5737) 2018-11-13 13:54:03 -03:30
.storybook Merge branch 'develop' into i3725-refactor-send-component- 2018-05-14 11:44:50 -02:30
app Fixed Vivek's bug (#5860) 2018-11-29 16:08:03 -08:00
development Merge pull request #5334 from whymarrh/ui-switch 2018-11-21 15:21:04 -03:30
docs Fix typos (#5471) 2018-10-09 09:29:51 -02:30
mascara Trim whitespace from seed phrase during import (#5827) 2018-11-26 13:10:42 -03:30
notices change wording of phishing notice, due to EIP 1102 (#5819) 2018-11-23 16:52:40 -08:00
old-ui Update new UI links in the old UI s/Beta/New/ 2018-11-20 14:04:50 -03:30
test Update e2e tests to handle any post-install window creation 2018-11-27 09:52:51 -03:30
ui Hide app-header when provider request pending (#5831) 2018-11-26 16:51:07 -03:30
.babelrc Minimum Browsers Supported (#4873) 2018-08-22 20:20:24 -02:30
.dockerignore mascara - ready to deploy via docker 2017-04-05 22:59:25 -07:00
.editorconfig init commit 2015-07-31 18:38:02 -07:00
.eslintignore Merge pull request #5797 from MetaMask/trezor-v6 2018-11-21 14:45:55 -05:00
.eslintrc ESLint fixes (#5775) 2018-11-16 14:54:55 -10:00
.gitattributes Fix gitattributes 2016-06-29 17:28:49 -07:00
.gitignore Add html reporter to test coverage output 2018-09-11 09:39:16 -07:00
.nsprc ignore lodash vulnerability 2018-07-03 13:46:50 -04:00
.nvmrc nvm: Bump Node version to 8.13 2018-11-21 15:47:57 -03:30
.stylelintignore [WIP] Add packages and tasks for linting scss 2017-08-14 10:03:16 +02:00
.stylelintrc Lint and cleanup all scss 2017-08-14 10:31:27 +02:00
.travis.yml Remove extraneous build target 2016-04-14 14:55:41 -07:00
auto-changelog.sh detect os 2018-11-15 10:12:11 -08:00
CHANGELOG.md Version 5.0.4 RC1 (#5859) 2018-11-29 11:43:00 -10:00
CONTRIBUTING.md update contributing.md 2018-07-05 17:52:26 -04:00
docker-compose.yml mascara - fix words and enviroment vars 2017-11-02 12:24:50 -05:00
Dockerfile Merge branch 'master' into mascara-deploy 2018-02-27 19:25:29 +00:00
fonts Improved Ui Dev Mode 2016-07-01 14:23:37 -07:00
gentests.js fix gentests.js 2018-07-02 19:36:26 -04:00
gulpfile.js Merge branch 'develop' into trezor-v5 2018-11-13 17:21:15 -05:00
images Improved Ui Dev Mode 2016-07-01 14:23:37 -07:00
ISSUE_TEMPLATE Merge branch 'master' into NewUI-flat-merge-with-master 2017-12-06 21:11:52 -08:00
LICENSE License 2018-06-22 16:28:54 -04:00
MISSION.md Mission v2 2018-05-29 09:30:59 -07:00
package-lock.json Merge pull request #5797 from MetaMask/trezor-v6 2018-11-21 14:45:55 -05:00
package.json Pin two module versions to avoid flatmap-stream hack (#5839) 2018-11-26 12:35:18 -10:00
README.md Update local build instructions 2018-11-21 16:25:43 -03:30
USER_AGREEMENT.md fix tos link; 2018-07-12 16:24:13 -04:00

MetaMask Browser Extension

Build Status Coverage Status Stories in Ready

Support

If you're a user seeking support, here is our support site.

Introduction

Mission Statement

Internal documentation

Developing Compatible Dapps

If you're a web dapp developer, we've got two types of guides for you:

New Dapp Developers

Current Dapp Developers

Building locally

  • Install Node.js version 8 and the latest available npm@6
    • If you are using nvm (recommended) running nvm use will automatically choose the right node version for you.
    • If you install Node.js manually, ensure you're using npm@6
      • Install npm@6 using npm install -g npm@6
  • Install dependencies: npm install
  • Install gulp globally with npm install -g gulp-cli.
  • Build the project to the ./dist/ folder with gulp build.
  • Optionally, to rebuild on file changes, run gulp dev.
  • To package .zip files for distribution, run gulp zip, or run the full build & zip with gulp dist.

Uncompressed builds can be found in /dist, compressed builds can be found in /builds once they're built.

Contributing

You can read our internal docs here.

You can re-generate the docs locally by running npm run doc, and contributors can update the hosted docs by running npm run publish-docs.

Running Tests

Requires mocha installed. Run npm install -g mocha.

Then just run npm test.

You can also test with a continuously watching process, via npm run watch.

You can run the linter by itself with gulp lint.

Architecture

Architecture Diagram

Development

npm install
npm start

Build for Publishing

npm run dist

Writing Browser Tests

To write tests that will be run in the browser using QUnit, add your test files to test/integration/lib.

Other Docs