Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

naynay tidyup job #191

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/flows/register/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export interface RegsiterParams {
programModAddress?: string
// TODO: Export ProgramInstance type from sdk
// TODO: Export ProgramInstance type from sdk <<
programData?: any
}
}
9 changes: 5 additions & 4 deletions tests/register.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@ test('Register - Barebones Program', async t => {
)

const verifyingKey = await run(
'register',
entropy.register({
programDeployer: entropy.keyring.accounts.registration.address,
'register account - with custom RegistraionParams',
register(entropy, {
programModAddress: entropy.keyring.accounts.registration.address,
programData: [{ program_pointer: pointer, program_config: '0x' }],
})
)

const fullAccount = entropy.keyring.getAccount()


// NOTE: @naynay this fails
t.equal(verifyingKey, fullAccount.registration.verifyingKeys[1], 'verifying key matches key added to regsitration account')

t.end()
Expand Down
Loading