Force shouldGetChainCode to true in types
This commit is contained in:
@@ -10,10 +10,12 @@ export interface LedgerCommunicationClient {
|
|||||||
* NodeJs and Browser communication are supported.
|
* NodeJs and Browser communication are supported.
|
||||||
*/
|
*/
|
||||||
export interface LedgerEthereumClient {
|
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: (
|
getAddress: (
|
||||||
derivationPath: string,
|
derivationPath: string,
|
||||||
askForDeviceConfirmation?: boolean,
|
askForDeviceConfirmation: boolean,
|
||||||
shouldGetChainCode?: boolean,
|
shouldGetChainCode: true,
|
||||||
) => Promise<LedgerGetAddressResult>;
|
) => Promise<LedgerGetAddressResult>;
|
||||||
signTransaction: (derivationPath: string, rawTxHex: string) => Promise<ECSignatureString>;
|
signTransaction: (derivationPath: string, rawTxHex: string) => Promise<ECSignatureString>;
|
||||||
signPersonalMessage: (derivationPath: string, messageHex: string) => Promise<ECSignature>;
|
signPersonalMessage: (derivationPath: string, messageHex: string) => Promise<ECSignature>;
|
||||||
|
Reference in New Issue
Block a user