Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: exclude smart transaction status page from rate limiting #30537

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
3 changes: 3 additions & 0 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ import { MILLISECOND, MINUTE, SECOND } from '../../shared/constants/time';
import {
ORIGIN_METAMASK,
POLLING_TOKEN_ENVIRONMENT_TYPES,
SMART_TRANSACTION_CONFIRMATION_TYPES,
} from '../../shared/constants/app';
import {
MetaMetricsEventCategory,
Expand Down Expand Up @@ -522,6 +523,8 @@ export default class MetamaskController extends EventEmitter {
ApprovalType.WatchAsset,
ApprovalType.EthGetEncryptionPublicKey,
ApprovalType.EthDecrypt,
// Exclude Smart TX Status Page from rate limiting to allow sequential transactions
SMART_TRANSACTION_CONFIRMATION_TYPES.showSmartTransactionStatusPage,
],
});

Expand Down
Loading