Skip to content

Commit

Permalink
fix: Remove stray localhost url
Browse files Browse the repository at this point in the history
  • Loading branch information
rekmarks committed Jun 5, 2024
1 parent 8e98ca4 commit b6f4c68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ import {
getSmartTransactionsOptInStatus,
getCurrentChainSupportsSmartTransactions,
} from '../../shared/modules/selectors';
import { BaseUrl } from '../../shared/constants/urls';
import {
///: BEGIN:ONLY_INCLUDE_IF(build-mmi)
handleMMITransactionUpdate,
Expand Down Expand Up @@ -5119,7 +5120,7 @@ export default class MetamaskController extends EventEmitter {
engine.push(createLoggerMiddleware({ origin }));
engine.push(this.permissionLogController.createMiddleware());

if (origin === 'https://portfolio.metamask.io' || 'http://localhost:3000') {
if (origin === BaseUrl.Portfolio) {
engine.push(createTxVerificationMiddleware(this.networkController));
}

Expand Down

0 comments on commit b6f4c68

Please sign in to comment.