1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00
metamask-extension/app/scripts/controllers
Akintayo A. Olusegun 03e3edb00c
Refactor checking if address is contract into a new module. (#12354)
* Refactor checking if address is contract into a new module.
Tests for new module.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* addressIsContract is an async function, use await when calling it.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint fixes

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Mock ethQuery
change variable names
refactor in transaction.utils.
fix possible boolean destructiring.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Refactor isContractAddress boolean checks.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint fixes

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
2021-10-20 16:12:07 +01:00
..
ens use safer toChecksum utility (#11117) 2021-05-17 16:19:39 -05:00
network Replace hardcoded sent ether label on confirm screen (#11802) 2021-09-15 16:54:51 -05:00
permissions Add eth_feeHistory to safe method list (#11999) 2021-09-02 10:26:32 -07:00
transactions Refactor checking if address is contract into a new module. (#12354) 2021-10-20 16:12:07 +01:00
alert.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
app-state.js Stop GasFeeController polling when pop closes (#11746) 2021-08-04 16:53:13 -05:00
cached-balances.js cache balances by chain id (#10545) 2021-03-02 16:53:07 -06:00
cached-balances.test.js Use strict assertion mode everywhere (#11012) 2021-05-07 17:08:24 -02:30
detect-tokens.js Turning OFF token detection for test nets (#12232) 2021-09-29 14:53:56 -04:00
detect-tokens.test.js Turning OFF token detection for test nets (#12232) 2021-09-29 14:53:56 -04:00
incoming-transactions.js add maxPriorityFeePerGas and maxFeePerGas to incoming controller (#11367) 2021-06-24 14:52:14 -05:00
incoming-transactions.test.js add maxPriorityFeePerGas and maxFeePerGas to incoming controller (#11367) 2021-06-24 14:52:14 -05:00
metametrics.js Removing obsolete client-side transaction metrics events (#11329) 2021-06-24 15:37:44 -07:00
metametrics.test.js Removing obsolete client-side transaction metrics events (#11329) 2021-06-24 15:37:44 -07:00
onboarding.js Migrate completedOnboarding and firstTimeFlowType state into onboardingController (#12356) 2021-10-15 13:52:52 -05:00
preferences.js Migrate completedOnboarding and firstTimeFlowType state into onboardingController (#12356) 2021-10-15 13:52:52 -05:00
preferences.test.js Changing Use Token detection to OFF by default (#12129) 2021-09-16 13:07:23 -04:00
swaps.js Fix weth->eth direct wrapping allowance issue (#12405) 2021-10-20 13:07:34 +02:00
swaps.test.js Fix form prefilling in Swaps on the Build Quote page (#12244) 2021-09-29 18:13:34 +02:00
threebox.js Add some metrics events to the 3box controller (#11447) 2021-07-02 17:00:40 -02:30