@ledgerhq/hw-app-eth
Advanced tools
Comparing version 4.3.0-beta.d226ed3b to 4.3.0-beta.f8165b69
@@ -1,3 +0,3 @@ | ||
// flow-typed signature: 696def0242d98e513b6490ab5780c479 | ||
// flow-typed version: <<STUB>>/@ledgerhq/hw-transport_v^4.0.0/flow_v0.66.0 | ||
// flow-typed signature: 92fac1564224389ca7d89e9cf2e47e05 | ||
// flow-typed version: <<STUB>>/@ledgerhq/hw-transport_v^4.2.0/flow_v0.66.0 | ||
@@ -25,14 +25,2 @@ /** | ||
*/ | ||
declare module '@ledgerhq/hw-transport/flow-typed/npm/events_vx.x.x' { | ||
declare module.exports: any; | ||
} | ||
declare module '@ledgerhq/hw-transport/flow-typed/npm/flow-bin_v0.x.x' { | ||
declare module.exports: any; | ||
} | ||
declare module '@ledgerhq/hw-transport/flow-typed/npm/flow-typed_vx.x.x' { | ||
declare module.exports: any; | ||
} | ||
declare module '@ledgerhq/hw-transport/src/Transport' { | ||
@@ -43,13 +31,4 @@ declare module.exports: any; | ||
// Filename aliases | ||
declare module '@ledgerhq/hw-transport/flow-typed/npm/events_vx.x.x.js' { | ||
declare module.exports: $Exports<'@ledgerhq/hw-transport/flow-typed/npm/events_vx.x.x'>; | ||
} | ||
declare module '@ledgerhq/hw-transport/flow-typed/npm/flow-bin_v0.x.x.js' { | ||
declare module.exports: $Exports<'@ledgerhq/hw-transport/flow-typed/npm/flow-bin_v0.x.x'>; | ||
} | ||
declare module '@ledgerhq/hw-transport/flow-typed/npm/flow-typed_vx.x.x.js' { | ||
declare module.exports: $Exports<'@ledgerhq/hw-transport/flow-typed/npm/flow-typed_vx.x.x'>; | ||
} | ||
declare module '@ledgerhq/hw-transport/src/Transport.js' { | ||
declare module.exports: $Exports<'@ledgerhq/hw-transport/src/Transport'>; | ||
} |
@@ -31,10 +31,3 @@ "use strict"; | ||
this.transport = transport; | ||
transport.setScrambleKey("w0w"); | ||
var self = this; | ||
var _arr = ["getAddress", "signTransaction", "signPersonalMessage"]; | ||
for (var _i = 0; _i < _arr.length; _i++) { | ||
var methodName = _arr[_i]; | ||
self[methodName] = transport.globalLock(methodName, self[methodName], self); | ||
} | ||
transport.decorateAppAPIMethods(this, ["getAddress", "signTransaction", "signPersonalMessage"], "w0w"); | ||
} | ||
@@ -41,0 +34,0 @@ |
{ | ||
"name": "@ledgerhq/hw-app-eth", | ||
"version": "4.3.0-beta.d226ed3b", | ||
"version": "4.3.0-beta.f8165b69", | ||
"description": "Ledger Hardware Wallet Ethereum Application API", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@ledgerhq/hw-transport": "^4.3.0-beta.d226ed3b" | ||
"@ledgerhq/hw-transport": "^4.3.0-beta.f8165b69" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
@@ -35,16 +35,7 @@ /******************************************************************************** | ||
this.transport = transport; | ||
transport.setScrambleKey("w0w"); | ||
const self: Object = this; | ||
for (let methodName of [ | ||
"getAddress", | ||
"signTransaction", | ||
"signPersonalMessage" | ||
]) { | ||
self[methodName] = transport.globalLock( | ||
methodName, | ||
self[methodName], | ||
self | ||
); | ||
} | ||
transport.decorateAppAPIMethods( | ||
this, | ||
["getAddress", "signTransaction", "signPersonalMessage"], | ||
"w0w" | ||
); | ||
} | ||
@@ -51,0 +42,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59834
12
32
1
56952
794