aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-12-18 22:56:31 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-12-18 22:56:31 +0800
commita3a2df098b3a67ec2da036ae469cb54709f0fd71 (patch)
tree3494ee17e4afb979ec54089c6d39757a3344843e /packages/subproviders
parent90d1c3e2c98944728ac9d38f22c050a490318deb (diff)
downloaddexon-sol-tools-a3a2df098b3a67ec2da036ae469cb54709f0fd71.tar.gz
dexon-sol-tools-a3a2df098b3a67ec2da036ae469cb54709f0fd71.tar.zst
dexon-sol-tools-a3a2df098b3a67ec2da036ae469cb54709f0fd71.zip
Add a comment
Diffstat (limited to 'packages/subproviders')
-rw-r--r--packages/subproviders/src/types.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/subproviders/src/types.ts b/packages/subproviders/src/types.ts
index 02855dd4c..c5ccf1fda 100644
--- a/packages/subproviders/src/types.ts
+++ b/packages/subproviders/src/types.ts
@@ -10,6 +10,8 @@ export interface LedgerCommunicationClient {
* NodeJs and Browser communication are supported.
*/
export interface LedgerEthereumClient {
+ // shouldGetChainCode is defined as `true` instead of `boolean` because other types rely on the assumption
+ // that we get back the chain code and we don't have dependent types to express it properly
getAddress_async: (derivationPath: string, askForDeviceConfirmation: boolean,
shouldGetChainCode: true) => Promise<LedgerGetAddressResult>;
signPersonalMessage_async: (derivationPath: string, messageHex: string) => Promise<ECSignature>;