From 930d149594543f6607de2233a5f7c94187d5f488 Mon Sep 17 00:00:00 2001 From: Nayyir Jutha Date: Mon, 16 Sep 2024 18:11:47 -0400 Subject: [PATCH] updated tests; --- tests/faucet.test.ts | 2 +- tests/transfer.test.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/faucet.test.ts b/tests/faucet.test.ts index 10ae1b70..255626cf 100644 --- a/tests/faucet.test.ts +++ b/tests/faucet.test.ts @@ -8,7 +8,7 @@ import { getRandomFaucet, sendMoney } from '../src/flows/entropyFaucet/faucet' import { LOCAL_PROGRAM_HASH } from '../src/flows/entropyFaucet/constants' import { EntropyAccount } from '../src/account/main' -test.skip('Faucet Tests', async t => { +test('Faucet Tests', async t => { const { run, entropy, endpoint } = await setupTest(t, { seed: charlieStashSeed }) const { entropy: naynayEntropy } = await setupTest(t) diff --git a/tests/transfer.test.ts b/tests/transfer.test.ts index a94567c4..c64a221a 100644 --- a/tests/transfer.test.ts +++ b/tests/transfer.test.ts @@ -1,6 +1,5 @@ import test from 'tape' import { wasmGlobalsReady } from '@entropyxyz/sdk' -// @ts-ignore import Keyring from '@entropyxyz/sdk/keys' import { makeSeed, @@ -13,6 +12,7 @@ import { initializeEntropy } from '../src/common/initializeEntropy' import { EntropyTransfer } from '../src/transfer/main' import { EntropyBalance } from '../src/balance/main' import { charlieStashAddress, charlieStashSeed } from './testing-utils/constants' +import { EntropyAccountData } from '../src/config/types' const networkType = 'two-nodes' const endpoint = 'ws://127.0.0.1:9944' @@ -32,12 +32,12 @@ test('Transfer', async (t) => { }) const charlieKeyring = new Keyring({ seed: charlieStashSeed, debug: true }) - const charlieEntropy = await initializeEntropy({ keyMaterial: charlieKeyring.getAccount(), endpoint, }) + const charlieEntropy = await initializeEntropy({ keyMaterial: charlieKeyring.getAccount() as EntropyAccountData, endpoint, }) await run('charlie ready', charlieEntropy.ready) const naynaySeed = makeSeed() const naynayKeyring = new Keyring({ seed: naynaySeed, debug: true }) - const naynayEntropy = await initializeEntropy({ keyMaterial: naynayKeyring.getAccount(), endpoint, }) + const naynayEntropy = await initializeEntropy({ keyMaterial: naynayKeyring.getAccount() as EntropyAccountData, endpoint, }) await run('naynay ready', naynayEntropy.ready) const naynayAddress = naynayEntropy.keyring.accounts.registration.address