File tree Expand file tree Collapse file tree
libs/ledgerjs/packages/hw-app-sui Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 "types" : " lib/Sui.d.ts" ,
2727 "license" : " Apache-2.0" ,
2828 "dependencies" : {
29+ "@ledgerhq/hw-transport" : " workspace:*" ,
2930 "@mysten/ledgerjs-hw-app-sui" : " 0.7.1"
3031 },
3132 "devDependencies" : {
Original file line number Diff line number Diff line change 1+ import Transport from "@ledgerhq/hw-transport" ;
12import SuiAPI from "@mysten/ledgerjs-hw-app-sui" ;
23
34/**
@@ -7,4 +8,11 @@ import SuiAPI from "@mysten/ledgerjs-hw-app-sui";
78 * import Sui from "@ledgerhq/hw-app-sui";
89 * const sui = new Sui(transport)
910 */
10- export default class Sui extends SuiAPI { }
11+ export default class Sui extends SuiAPI {
12+ constructor ( transport : Transport , scrambleKey ?: string , verbose ?: boolean ) {
13+ // The upstream @mysten /ledgerjs-hw-app-sui bundles its own Transport type
14+ // declarations, which are structurally identical but nominally incompatible
15+ // due to private property checks. This cast bridges the two type universes.
16+ super ( transport as unknown as ConstructorParameters < typeof SuiAPI > [ 0 ] , scrambleKey , verbose ) ;
17+ }
18+ }
You can’t perform that action at this time.
0 commit comments