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