Force shouldGetChainCode to true in types
This commit is contained in:
parent
7bfc499ec8
commit
f3026e33fd
@ -10,10 +10,12 @@ 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: (
|
||||
derivationPath: string,
|
||||
askForDeviceConfirmation?: boolean,
|
||||
shouldGetChainCode?: boolean,
|
||||
askForDeviceConfirmation: boolean,
|
||||
shouldGetChainCode: true,
|
||||
) => Promise<LedgerGetAddressResult>;
|
||||
signTransaction: (derivationPath: string, rawTxHex: string) => Promise<ECSignatureString>;
|
||||
signPersonalMessage: (derivationPath: string, messageHex: string) => Promise<ECSignature>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user