1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/helpers/utils
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
..
build-types.js Prevent fox mesh JSON warning (#12200) 2021-09-27 12:40:05 -10:00
common.util.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
common.util.test.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
confirm-tx.util.js Only show dapp suggested gas fee warning if user has not edited the fee (#11621) 2021-07-27 20:01:53 -02:30
confirm-tx.util.test.js Add gas constants (#11248) 2021-06-08 10:25:48 -05:00
conversions.util.js Fixes updates on the confirm screen. (#11788) 2021-08-06 14:31:30 -05:00
conversions.util.test.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
fetch-with-cache.js Using values from shared/constants/time to represent timing values (#11241) 2021-06-10 12:27:03 -07:00
fetch-with-cache.test.js bump @metamask/controllers to v15.0.2 and remove AbortController workaround in e2e tests (#11988) 2021-09-03 09:34:21 -05:00
formatters.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
i18n-helper.js Using values from shared/constants/time to represent timing values (#11241) 2021-06-10 12:27:03 -07:00
i18n-helper.test.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
icon-factory.js adding checksum conversion (#12209) 2021-09-27 09:58:12 -04:00
is-mobile-view.js Using design system breakpoint values across ui/ 2021-09-11 11:00:46 -07:00
storage-helpers.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
switch-direction.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
token-util.js Integrating the TokenListController to Extension (#11398) 2021-09-09 16:56:27 -04:00
transactions.util.js Refactor checking if address is contract into a new module. (#12354) 2021-10-20 16:12:07 +01:00
transactions.util.test.js Support for type 0 transaction (#12252) 2021-10-06 23:59:57 +05:30
tx-helper.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
tx-helper.test.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
util.js Fixing address truncation papercuts (#12330) 2021-10-13 12:54:48 -05:00
util.test.js create safer isValidAddress method (#11089) 2021-05-17 14:00:59 -05:00
webcam-utils.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00