Chi Kei Chan
31175625b4
Folder restructure ( #6304 )
...
* Remove ui/app/keychains/
* Remove ui/app/img/ (unused images)
* Move conversion-util to helpers/utils/
* Move token-util to helpers/utils/
* Move /helpers/*.js inside /helpers/utils/
* Move util tests inside /helpers/utils/
* Renameand move confirm-transaction/util.js to helpers/utils/
* Move higher-order-components to helpers/higher-order-components/
* Move infura-conversion.json to helpers/constants/
* Move all utility functions to helpers/utils/
* Move pages directory to top-level
* Move all constants to helpers/constants/
* Move metametrics inside helpers/
* Move app and root inside pages/
* Move routes inside helpers/
* Re-organize ducks/
* Move reducers to ducks/
* Move selectors inside selectors/
* Move test out of test folder
* Move action, reducer, store inside store/
* Move ui components inside ui/
* Move UI components inside ui/
* Move connected components inside components/app/
* Move i18n-helper inside helpers/
* Fix unit tests
* Fix unit test
* Move pages components
* Rename routes component
* Move reducers to ducks/index
* Fix bad path in unit test
6 years ago
Frankie
b5d6452454
Disallow loading as metamaskNetworkId ( #5924 )
...
* transactions - throw an error if a transaction is generated while the network is loading
* add tests for failing when netId is loading
6 years ago
Alexander Tseung
d8ab9cc002
Group transactions by nonce ( #5886 )
6 years ago
Dan Miller
9b9a2cc2e0
Adds createSpeedUpTransaction to txController
6 years ago
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
6 years ago
Frankie
a803522a92
transactions/tx-gas-utils - add the acctual response for eth_getCode for NO_CONTRACT_ERROR's && add a debug object to simulationFailed ( #5840 )
6 years ago
Frankie
8198ec9ae1
Autofill gasPrice for retry attempts with either the recommended gasprice or a %10 bump ( #5786 )
...
* transactions - autofill gasPrice for retry attempts with either the recomened gasprice or a %10 bump
* lint
6 years ago
Frankie
97c1e6bcc1
transactions - ensure err is defined when setting tx failed ( #5801 )
6 years ago
Whymarrh Whitby
1988e1e96b
ESLint fixes ( #5775 )
...
* eslint . --fix
* Upgrade all ESLint warnings to errors
6 years ago
Frankie
ce147bf6d8
Tx controller now uses safe event emitter ( #5769 )
...
* transactions - use safe-event-emitter over events
* tests - pass a platform object on init with a noop showTransactionNotification
* test - fix for tx-state-history-helper trying to reduce an empty array
* deps - safe-event-emitter
* lint
6 years ago
Dan Finlay
22ba0b0c2d
Resubmit approved transactions on new block ( #5752 )
...
* Add beginning of test
* Resubmit approved transactions on new block
May fix #4343 and related issues, where an error could leave
transactions stranded in the approved state.
* Remove unused test
* Re-approve transactions when retrying approved
* Add retry approved test
* Include approved in pending tx count
* Fix getPendingTxs()
* Linted
* Only throw hash error in submitted state
* Only check submitted txs for block inclusion
* Fix test expectations
6 years ago
kumavis
31e5cad1e3
tx-gas-util - set error message when invalidating tx based on tx data but no contract code
6 years ago
Alexander Tseung
c821a8354c
Add txReceipt data to transaction details ( #5513 )
6 years ago
Whymarrh Whitby
af43b7d6c9
Ensure that new transactions added are using the selected address
6 years ago
Whymarrh Whitby
428a7cacdf
Revert "transactions - add txReceipt to the txMeta body for confirmed txs ( #5375 )"
...
This reverts commit ff67293a8e
.
6 years ago
Frankie
ff67293a8e
transactions - add txReceipt to the txMeta body for confirmed txs ( #5375 )
6 years ago
kumavis
600f755dbf
tx-gas-utils - improve format + comments
6 years ago
Howard Braham
4cc0b1ef01
ganache-core merged my PR, so I changed some comments to clarify that ganache-core v2.2.1 and below will return the non-standard '0x0'
6 years ago
Howard Braham
222e62d7f1
Bug Fix : #1789 and #4525 eth.getCode() with no contract
6 years ago
Dan Finlay
507397f6c3
Fix updating of pending transactions
...
Transaction statuses were not being properly updated when:
- MetaMask was unlocked
- The network was changed
This PR fixes both of those. Fixes #5174
6 years ago
Alexander Tseung
5a6c333506
Switch existing modals from using Notification to Modal. Remove Notification component. Add CancelTransaction modal
6 years ago
Alexander Tseung
43de189d06
Add createCancelTransaction method
6 years ago
Whymarrh Whitby
7c3b69e1e4
Attach the RPC error value to txMeta
6 years ago
brunobar79
992e7f1b5a
fix merge conflicts
6 years ago
brunobar79
b77cc3d969
fix tx tests
6 years ago
brunobar79
068bf43615
working
6 years ago
Jenny Pollack
00bae74475
tx-gas-utils - catch all errors from gas estimation
6 years ago
Csaba Solya
a3822b4680
add notifications
6 years ago
Csaba Solya
6921f94bfe
initial test
6 years ago
Alexander Tseung
a2d9c43fba
Various fixes from PR comments
6 years ago
Alexander Tseung
9cde5ab11b
Use eth-method-registry to get method data
6 years ago
Alexander Tseung
7732cd4100
Display newest transaction
6 years ago
Alexander Tseung
ea9d51e427
Refactor and redesign confirm transaction views
6 years ago
brunobar79
a8f745f9fe
eslint --fix .
6 years ago
frankiebee
9b92ba4c47
trandsactions - remove rejected transactions from history
7 years ago
tmashuang
dd18684a5d
Remove unsued nonce tracker function
7 years ago
kumavis
33cb0a8cb2
lint - fix recipient-blacklist.js
7 years ago
kumavis
83c02f90cf
blacklist - recipient blacklist as js for inline comments
7 years ago
kumavis
753743e746
Update recipient-blacklist-config.json
7 years ago
Dan Finlay
a42299aab7
Add apparent phishing address to block list
...
In [this reddit post](https://www.reddit.com/r/Metamask/comments/8r3nsu/help_me_please_somebody_stole_my_ethers/ ) a user suggests they got some ether stolen after visiting IDEX. Their ether was sent to [this address](https://etherscan.io/address/0x9bcb0a9d99d815bb87ee3191b1399b1bcc46dc77 ), which is full of comments of people telling similar stories of being phished on IDEX. I think we can safely block this, and probably safe some people some money.
7 years ago
kumavis
604289c96c
controllers - transaction - prefer log over console
7 years ago
kumavis
177cc3f280
metamask - ensure all nonce locks are released
7 years ago
kumavis
8f93e34175
nonce-tracker - wrap nonce calculations in try-catch and release lock on error
7 years ago
kumavis
c86f935889
nonce-tracker - wrap nonce calculations in try-catch and release lock on error
7 years ago
Csaba Solya
1dda0c6469
remove generating blocked accounts and use a config file instead
7 years ago
Csaba Solya
3e489ea165
fix documentation
7 years ago
Csaba Solya
cf73581c0e
adding tests for recipient blacklist checker
7 years ago
Csaba Solya
6affd8f949
adding transaction controller tests
7 years ago
Csaba Solya
afb5788861
initial implementation
7 years ago
kumavis
58de5671cc
controllers - transactions - fix tx status update on boot
7 years ago