Valentin D. Pinkman
7 years ago
No known key found for this signature in database
GPG Key ID: E7D110669FFB8D3E
1 changed files with
2 additions and
0 deletions
-
src/helpers/socket.js
|
|
@ -74,7 +74,9 @@ export const createDeviceSocket = (transport: Transport<*>, url: string) => |
|
|
|
for (const apdu of data) { |
|
|
|
const r: Buffer = await transport.exchange(Buffer.from(apdu, 'hex')) |
|
|
|
lastStatus = r.slice(r.length - 2) |
|
|
|
if (lastStatus.toString('hex') !== '9000') break |
|
|
|
} |
|
|
|
|
|
|
|
if (!lastStatus) { |
|
|
|
throw new DeviceSocketNoBulkStatus() |
|
|
|
} |
|
|
|