From 759bb9f205ee42964998bdf90d99f1fcd7a6db75 Mon Sep 17 00:00:00 2001 From: BenRey Date: Tue, 23 Apr 2024 14:59:58 +0200 Subject: [PATCH] fix test by generating random secret key --- .../test/experimental/unit/operationManager.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/massa-web3/test/experimental/unit/operationManager.spec.ts b/packages/massa-web3/test/experimental/unit/operationManager.spec.ts index 36d60294..39fa8a4e 100644 --- a/packages/massa-web3/test/experimental/unit/operationManager.spec.ts +++ b/packages/massa-web3/test/experimental/unit/operationManager.spec.ts @@ -105,7 +105,7 @@ describe('Unit tests', () => { 'AU1wN8rn4SkwYSTDF3dHFY4U28KtsqKL1NnEjDZhHnHEy6cEQm53' ), } - const publicKey = await PrivateKey.fromEnv().getPublicKey() + const publicKey = await PrivateKey.generate().getPublicKey() expect(OperationManager.canonicalize(1n, transfer, publicKey)).toEqual( Uint8Array.from( getOperationBufferToSign( @@ -151,7 +151,7 @@ describe('Unit tests', () => { ]), } - const publicKey = await PrivateKey.fromEnv().getPublicKey() + const publicKey = await PrivateKey.generate().getPublicKey() expect(OperationManager.canonicalize(1n, execute, publicKey)).toEqual( Uint8Array.from( getOperationBufferToSign(