Skip to content

Commit

Permalink
use keyring address
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiebee committed Sep 18, 2024
1 parent 6c083df commit 51f00a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/programs-dev.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ test('Programs#dev: all methods', async (t) => {
console.log('newPointer:', newPointer)
const programsDeployed = await run(
'get deployed programs',
entropy.programs.dev.getByDeployer(charlieStashAddress)
entropy.programs.dev.getByDeployer(entropy.keyring.accounts.programDev.address)
)
try {
await entropy.programs.dev.get(charlieStashAddress)
t.fail('entropy.programs.dev.get(charlieStashAddress) should have failed')
await entropy.programs.dev.get(entropy.keyring.accounts.programDev.address)
t.fail('entropy.programs.dev.get(entropy.keyring.accounts.programDev.address) should have failed')
} catch (e) {
t.ok(e.message.includes('pointer length is less then or equal to 48. are you using an address?'), 'should error when using an address')
}
Expand Down Expand Up @@ -101,7 +101,7 @@ test('Programs#dev: all methods', async (t) => {

const programsDeployedAfterRemove = await run(
'get deployed programs',
entropy.programs.dev.getByDeployer(charlieStashAddress)
entropy.programs.dev.getByDeployer(entropy.keyring.accounts.programDev.address)
)
// the removal of a program has failed
// the removing of a program is questionable
Expand Down

0 comments on commit 51f00a3

Please sign in to comment.