From 118c5a7ba8b475159ccd94666af8edff662d7455 Mon Sep 17 00:00:00 2001 From: Nayyir Jutha Date: Tue, 6 Aug 2024 17:02:43 -0400 Subject: [PATCH] updated register tests --- tests/register.test.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/register.test.ts b/tests/register.test.ts index f093df6f..67167a0d 100644 --- a/tests/register.test.ts +++ b/tests/register.test.ts @@ -1,15 +1,14 @@ import test from 'tape' - +import { registerAccount } from '../src/accounts/utils' import { charlieStashSeed, setupTest } from './testing-utils' -import { register } from '../src/flows/register/register' import { readFileSync } from 'node:fs' const networkType = 'two-nodes' -test('Regsiter - Default Program', async (t) => { +test('Register - Default Program', async (t) => { const { run, entropy } = await setupTest(t, { networkType, seed: charlieStashSeed }) - const verifyingKey = await run('register account', register(entropy)) + const verifyingKey = await run('register account', registerAccount(entropy)) const fullAccount = entropy.keyring.getAccount() @@ -30,7 +29,7 @@ test('Register - Barebones Program', async t => { const verifyingKey = await run( 'register - using custom params', - register(entropy, { + registerAccount(entropy, { programModAddress: entropy.keyring.accounts.registration.address, programData: [{ program_pointer: pointer, program_config: '0x' }], })