1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00
metamask-extension/app
Mark Stacey 59a1746afc
Validate custom spend limit (#7920)
The custom spend limit was previously not validated. It did have a
minimum of zero set, but this didn't have any affect (that minimum is
used for form constraint validation, and this field wasn't in a form).
The field was never checked to ensure the contents didn't exceed the
maximum.

The field is now checked for values that exceed the maximum, and
invalid values in general (including negative values).

The parameters to the `showEditApprovalPermissionModal` were also
alphabetized to make them easier to read. In the course of doing this,
I noticed that the origin was missing from one of the calls. This was
responsible for the modal saying "Spend limit requested by undefined"
when clicking "Edit" under the transaction details. This has been
fixed.
2020-01-29 14:16:38 -04:00
..
_locales Validate custom spend limit (#7920) 2020-01-29 14:16:38 -04:00
fonts
images Connect distinct accounts per site (#7004) 2019-12-03 13:39:25 -04:00
scripts Replace debounce package with debounce function from lodash (#7931) 2020-01-29 13:36:03 -04:00
vendor/trezor Close window after opening fullscreen (#6966) 2019-08-08 11:50:32 -03:00
home.html 3box integration 2.0 (#6972) 2019-09-16 14:41:01 -02:30
loading.html
manifest.json Version v7.7.0 2019-12-03 13:39:25 -04:00
notification.html 3box integration 2.0 (#6972) 2019-09-16 14:41:01 -02:30
phishing.html
popup.html 3box integration 2.0 (#6972) 2019-09-16 14:41:01 -02:30
trezor-usb-permissions.html
unsupport.html