Skip to content

Commit

Permalink
add getAddress tests for m/5757'/x/x/x/x path
Browse files Browse the repository at this point in the history
  • Loading branch information
ftheirs committed Jul 1, 2024
1 parent 7a80ecd commit 23d03bc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests_zemu/tests/standard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,22 @@ describe('Standard', function () {
}
})

test.concurrent.each(models)(`get address2`, async function (m) {
const sim = new Zemu(m.path)
try {
await sim.start({ ...defaultOptions, model: m.name })
const app = new StacksApp(sim.getTransport())

// Verify that the app works for m/5757'/x/x/x/x
const response = await app.getAddressAndPubKey("m/5757'/0'/5'/0/0", AddressVersion.MainnetSingleSig)
console.log(response)
expect(response.returnCode).toEqual(0x9000)

} finally {
await sim.close()
}
})

test.concurrent.each(models)(`get identify publicKey`, async function (m) {
const sim = new Zemu(m.path)
try {
Expand Down

0 comments on commit 23d03bc

Please sign in to comment.