diff --git a/yarn-project/canary/src/cli.test.ts b/yarn-project/canary/src/cli.test.ts index 96e75a945df..e9d43af33ea 100644 --- a/yarn-project/canary/src/cli.test.ts +++ b/yarn-project/canary/src/cli.test.ts @@ -115,7 +115,7 @@ describe('CLI canary', () => { // generate a private key debug('Create an account using a private key'); await run('generate-private-key', false); - const privKey = findInLogs(/Private\sKey:\s+(?[a-fA-F0-9]+)/)?.groups?.privKey; + const privKey = findInLogs(/Private\sKey:\s+0x(?[a-fA-F0-9]+)/)?.groups?.privKey; expect(privKey).toHaveLength(64); await run(`create-account --private-key ${privKey}`); const foundAddress = findInLogs(/Address:\s+(?
0x[a-fA-F0-9]+)/)?.groups?.address;