Skip to content

Commit

Permalink
Merge pull request #103 from Zondax/generic_fix
Browse files Browse the repository at this point in the history
Fix getAddress for generic
  • Loading branch information
ftheirs authored May 3, 2024
2 parents aa9d74a + 3b3c518 commit e67e59a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generic_app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export class GenericApp {
const p1 = showAddrInDevice ? P1_VALUES.SHOW_ADDRESS_IN_DEVICE : P1_VALUES.ONLY_RETRIEVE;

try {
const response = await this.transport.send(this.cla, INS.GET_ADDR, p1, 0, bip44Path);
const response = await this.transport.send(this.cla, INS.GET_ADDR, p1, 0, payload);
const errorCodeData = response.subarray(-2);
const errorCode = errorCodeData[0] * 256 + errorCodeData[1];

Expand Down

0 comments on commit e67e59a

Please sign in to comment.