Skip to content

Commit

Permalink
Simulator: Add missing binding for execRawAPDU()
Browse files Browse the repository at this point in the history
  • Loading branch information
icedevml committed Nov 7, 2024
1 parent b761ce1 commit 79eb7ef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/src.ts/halo/simulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,12 @@ class SimHaloAPI extends BaseHaloAPI {
await this.sim.swapCard(cardId);
}

executeCommand(args: HaloCommandObject): Promise<HaloResponseObject> {
return this.sim.execHaloCmd(args);
async execRawAPDU(data: Buffer): Promise<Buffer> {
return await this.sim.execRawAPDU(data);
}

async executeCommand(args: HaloCommandObject): Promise<HaloResponseObject> {
return await this.sim.execHaloCmd(args);
}
}

Expand Down

0 comments on commit 79eb7ef

Please sign in to comment.