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(