1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

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

This commit is contained in:
VSaric 2022-09-06 16:13:04 +02:00 committed by GitHub
parent 8fa96ac1a2
commit cd5398b2b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,