Skip to content

Commit f122c41

Browse files
fixup! feat: remove async from crypto API
1 parent 6120b34 commit f122c41

File tree

9 files changed

+9
-27
lines changed

9 files changed

+9
-27
lines changed

packages/core/test/Cardano/util/computeImplicitCoin.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ describe('Cardano.util.computeImplicitCoin', () => {
77
let dRepPublicKey: Crypto.Ed25519PublicKeyHex;
88
let dRepKeyHash: Crypto.Ed25519KeyHashHex;
99

10-
beforeAll(async () => {
11-
await Crypto.ready();
12-
});
10+
beforeAll(() => Crypto.ready());
1311

1412
beforeEach(async () => {
1513
rewardAccount = Cardano.RewardAccount('stake_test1uqfu74w3wh4gfzu8m6e7j987h4lq9r3t7ef5gaw497uu85qsqfy27');

packages/crypto/test/bip32/Bip32PrivateKey.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import { InvalidStringError } from '@cardano-sdk/util';
33
import { bip32TestVectorMessageOneLength, extendedVectors } from '../ed25519e/Ed25519TestVectors';
44

55
describe('Bip32PrivateKey', () => {
6-
beforeAll(async () => {
7-
await Crypto.ready();
8-
});
6+
beforeAll(() => Crypto.ready());
97

108
it('can create an instance from a valid normal BIP-32 private key hex representation', async () => {
119
const privateKey = Crypto.Bip32PrivateKey.fromHex(

packages/crypto/test/bip32/Bip32PublicKey.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ import {
77
} from '../ed25519e/Ed25519TestVectors';
88

99
describe('Bip32PublicKey', () => {
10-
beforeAll(async () => {
11-
await Crypto.ready();
12-
});
10+
beforeAll(() => Crypto.ready());
1311

1412
it('can create an instance from a valid normal BIP-32 public key hex representation', async () => {
1513
const publicKey = Crypto.Bip32PublicKey.fromHex(

packages/crypto/test/ed25519e/Ed25519PrivateKey.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ import {
88
} from './Ed25519TestVectors';
99

1010
describe('Ed25519PrivateKey', () => {
11-
beforeAll(async () => {
12-
await Crypto.ready();
13-
});
11+
beforeAll(() => Crypto.ready());
1412

1513
it('can create an instance from a valid normal Ed25519 private key hex representation', () => {
1614
const privateKey = Crypto.Ed25519PrivateKey.fromNormalHex(

packages/crypto/test/ed25519e/Ed25519PublicKey.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import { HexBlob, InvalidStringError } from '@cardano-sdk/util';
33
import { InvalidSignature, testVectorMessageZeroLength, vectors } from './Ed25519TestVectors';
44

55
describe('Ed25519PublicKey', () => {
6-
beforeAll(async () => {
7-
await Crypto.ready();
8-
});
6+
beforeAll(() => Crypto.ready());
97

108
it('can create an instance from a valid Ed25519 public key hex representation', () => {
119
const publicKey = Crypto.Ed25519PublicKey.fromHex(

packages/crypto/test/ed25519e/Ed25519Signature.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import { InvalidStringError } from '@cardano-sdk/util';
33
import { testVectorMessageZeroLength } from './Ed25519TestVectors';
44

55
describe('Ed25519Signature', () => {
6-
beforeAll(async () => {
7-
await Crypto.ready();
8-
});
6+
beforeAll(() => Crypto.ready());
97

108
it('can create an instance from a valid Ed25519 signature hex representation', () => {
119
const signature = Crypto.Ed25519Signature.fromHex(

packages/key-management/test/util/ensureStakeKeys.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ describe('ensureStakeKeys', () => {
88
let bip32Account: Bip32Account;
99
let logger: Logger;
1010

11-
beforeAll(async () => {
12-
await Crypto.ready();
13-
});
11+
beforeAll(() => Crypto.ready());
1412

1513
beforeEach(async () => {
1614
logger = dummyLogger;

packages/key-management/test/util/ownSignaturePaths.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ describe('KeyManagement.util.ownSignaturePaths', () => {
5959

6060
const knownAddress1 = createGroupedAddress(address1, ownRewardAccount, AddressType.External, 0, stakeKeyPath);
6161

62-
beforeAll(async () => {
63-
await Crypto.ready();
64-
});
62+
beforeAll(() => Crypto.ready());
6563

6664
beforeEach(async () => {
6765
dRepPublicKey = Crypto.Ed25519PublicKeyHex('deeb8f82f2af5836ebbc1b450b6dbf0b03c93afe5696f10d49e8a8304ebfac01');

packages/wallet/test/services/DRepRegistrationTracker.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ import { createTestScheduler } from '@cardano-sdk/util-dev';
66
import { of } from 'rxjs';
77

88
describe('createDRepRegistrationTracker', () => {
9-
beforeAll(async () => {
10-
await Crypto.ready();
11-
});
9+
beforeAll(() => Crypto.ready());
1210

1311
let dRepPublicKey: Crypto.Ed25519PublicKeyHex;
1412
let dRepKeyHash: Crypto.Hash28ByteBase16;

0 commit comments

Comments
 (0)