Skip to content

Commit

Permalink
updated tests;
Browse files Browse the repository at this point in the history
  • Loading branch information
rh0delta committed Sep 16, 2024
1 parent 96d273c commit 930d149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/faucet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions tests/transfer.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import test from 'tape'
import { wasmGlobalsReady } from '@entropyxyz/sdk'
// @ts-ignore
import Keyring from '@entropyxyz/sdk/keys'
import {
makeSeed,
Expand All @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit 930d149

Please sign in to comment.