Skip to content

Commit

Permalink
refactor(ledger-connector): rename transport
Browse files Browse the repository at this point in the history
  • Loading branch information
alx-khramov committed Jan 19, 2024
1 parent c6d5a9f commit d7c1afc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/connectors/ledger-connector/src/hid/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ export class LedgerHQProvider extends JsonRpcBatchProvider {
invariant(this.transport, 'Transport is not defined');

try {
const transport = (await this.transport?.create()) as TransportWebHID;
this.device = transport.device;
const transportInstance =
(await this.transport?.create()) as TransportWebHID;
this.device = transportInstance.device;

return transport;
return transportInstance;
} catch (error) {
return checkError(error);
}
Expand Down

0 comments on commit d7c1afc

Please sign in to comment.