Skip to content

Commit

Permalink
fix test by generating random secret key
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Rey committed Apr 23, 2024
1 parent 85b196a commit 759bb9f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 759bb9f

Please sign in to comment.