diff --git a/packages/signature-controller/src/SignatureController.test.ts b/packages/signature-controller/src/SignatureController.test.ts index 368772bec26..3c903a87667 100644 --- a/packages/signature-controller/src/SignatureController.test.ts +++ b/packages/signature-controller/src/SignatureController.test.ts @@ -185,7 +185,7 @@ describe('SignatureController', () => { normalizePersonalMessageParamsMock.mockImplementation((params) => params); normalizeTypedMessageParamsMock.mockImplementation((params) => params); - uuidV1Mock.mockReturnValue(ID_MOCK); + uuidV1Mock.mockReturnValueOnce(ID_MOCK); }); describe('unapprovedPersonalMessagesCount', () => { diff --git a/packages/signature-controller/src/SignatureController.ts b/packages/signature-controller/src/SignatureController.ts index b6a61f374dd..54b8f1e63ec 100644 --- a/packages/signature-controller/src/SignatureController.ts +++ b/packages/signature-controller/src/SignatureController.ts @@ -580,7 +580,7 @@ export class SignatureController extends BaseController< const metadata = { chainId, - id: random(), + id, messageParams: finalMessageParams, networkClientId, securityAlertResponse,