mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Fix fail to reject multiple approval requests (#19050)
This commit is contained in:
parent
8df3bc9c1b
commit
da8cb0bbc0
@ -63,6 +63,7 @@ import {
|
||||
///: END:ONLY_INCLUDE_IN
|
||||
|
||||
import { SignatureController } from '@metamask/signature-controller';
|
||||
import { ApprovalType } from '@metamask/controller-utils';
|
||||
import {
|
||||
AssetType,
|
||||
TransactionStatus,
|
||||
@ -94,7 +95,6 @@ import { UI_NOTIFICATIONS } from '../../shared/notifications';
|
||||
import { MILLISECOND, SECOND } from '../../shared/constants/time';
|
||||
import {
|
||||
ORIGIN_METAMASK,
|
||||
MESSAGE_TYPE,
|
||||
///: BEGIN:ONLY_INCLUDE_IN(snaps)
|
||||
SNAP_DIALOG_TYPES,
|
||||
///: END:ONLY_INCLUDE_IN
|
||||
@ -256,9 +256,13 @@ export default class MetamaskController extends EventEmitter {
|
||||
}),
|
||||
showApprovalRequest: opts.showUserConfirmation,
|
||||
typesExcludedFromRateLimiting: [
|
||||
MESSAGE_TYPE.ETH_SIGN,
|
||||
MESSAGE_TYPE.PERSONAL_SIGN,
|
||||
MESSAGE_TYPE.ETH_SIGN_TYPED_DATA,
|
||||
ApprovalType.EthSign,
|
||||
ApprovalType.PersonalSign,
|
||||
ApprovalType.EthSignTypedData,
|
||||
ApprovalType.Transaction,
|
||||
ApprovalType.WatchAsset,
|
||||
ApprovalType.EthGetEncryptionPublicKey,
|
||||
ApprovalType.EthDecrypt,
|
||||
],
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user