Skip to content

Commit

Permalink
demonstrate broken function
Browse files Browse the repository at this point in the history
  • Loading branch information
mixmix committed Jul 18, 2024
1 parent 166a1a2 commit e3a22df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
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

0 comments on commit e3a22df

Please sign in to comment.