From 378fffa897ea923edbd41ea3f9eca58acf4f1f3b Mon Sep 17 00:00:00 2001 From: mixmix Date: Thu, 29 Aug 2024 16:14:38 +1200 Subject: [PATCH] fixups --- src/account/interaction.ts | 5 ++--- tests/transfer.test.ts | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/account/interaction.ts b/src/account/interaction.ts index 2bfcb3f5..9ecffb5b 100644 --- a/src/account/interaction.ts +++ b/src/account/interaction.ts @@ -25,11 +25,10 @@ export async function entropyManageAccounts (endpoint: string, storedConfig: Ent seed = seed.split('#debug')[0] } const newAccount = seed - ? EntropyAccount.import({ seed, name, path }) - : EntropyAccount.create({ name, path }) + ? await EntropyAccount.import({ seed, name, path }) + : await EntropyAccount.create({ name, path }) accounts.push(newAccount) - // WIP HERE return { accounts, selectedAccount: newAccount.address diff --git a/tests/transfer.test.ts b/tests/transfer.test.ts index b744a684..a94567c4 100644 --- a/tests/transfer.test.ts +++ b/tests/transfer.test.ts @@ -1,6 +1,5 @@ import test from 'tape' import { wasmGlobalsReady } from '@entropyxyz/sdk' -// WIP: I'm seeing problems importing this? // @ts-ignore import Keyring from '@entropyxyz/sdk/keys' import {