Replaced use of pubnub for uuid method in app/ directory (#15712)

feature/default_network_editable
VSaric 2 years ago committed by GitHub
parent 8fa96ac1a2
commit cd5398b2b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/scripts/controllers/metametrics.js

@ -10,7 +10,7 @@ import {
} from 'lodash';
import { ObservableStore } from '@metamask/obs-store';
import { bufferToHex, keccak } from 'ethereumjs-util';
import { generateUUID } from 'pubnub';
import { v4 as uuidv4 } from 'uuid';
import { ENVIRONMENT_TYPE_BACKGROUND } from '../../../shared/constants/app';
import {
METAMETRICS_ANONYMOUS_ID,
@ -190,7 +190,7 @@ export default class MetaMetricsController {
}
const { fragments } = this.store.getState();
const id = options.uniqueIdentifier ?? generateUUID();
const id = options.uniqueIdentifier ?? uuidv4();
const fragment = {
id,
...options,

Loading…
Cancel
Save