Skip to content

Commit

Permalink
fix: test import error
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Prohaszka <stephane.prohaszka@ledger.fr>
  • Loading branch information
sprohaszka-ledger committed Apr 29, 2024
1 parent 1c6393c commit dbb48b0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import eip55 from "eip55";
import { getCryptoCurrencyById } from "@ledgerhq/cryptoassets/currencies";
import type { EvmAddress, EvmSigner } from "../../types/signer";
import type { EvmSigner } from "../../types/signer";
import resolver from "../../hw-getAddress";

const address = "0xc3f95102D5c8F2c83e49Ce3Acfb905eDfb7f37dE";
Expand Down
21 changes: 12 additions & 9 deletions libs/coin-modules/coin-tezos/src/test/bridgeDatasetTest.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { fromAccountRaw } from "../../account";
import { loadAccountDelegation, listBakers } from "./bakers";
import whitelist from "./bakers.whitelist-default";

import { fromAccountRaw } from "@ledgerhq/coin-framework/serialization/index";
import { AmountRequired, NotEnoughBalance } from "@ledgerhq/errors";
import type { DatasetTest } from "@ledgerhq/types-live";
import type { TezosAccountRaw, Transaction } from "./types";

import tezosScanAccounts1 from "./datasets/tezos.scanAccounts.1";
import type { DatasetTest, DerivationMode } from "@ledgerhq/types-live";
import { loadAccountDelegation, listBakers } from "../api/bakers";
import whitelist from "../api/bakers.whitelist-default";
import type { TezosAccountRaw, Transaction } from "../types";
import tezosScanAccounts1 from "../datasets/tezos.scanAccounts.1";

function makeAccountRaw(name, pubkey, address, derivationMode): TezosAccountRaw {
function makeAccountRaw(
name: string,
pubkey: string,
address: string,
derivationMode: DerivationMode,
): TezosAccountRaw {
return {
id: `js:2:tezos:${pubkey}:${derivationMode}`,
seedIdentifier: address,
Expand Down
4 changes: 2 additions & 2 deletions libs/ledger-live-common/src/bridge/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function executeWithSigner<T>(signerFactory: CreateSigner<T>): SignerCont
* @param coinResolver
* @returns Resolver
*/
export function createResolver<T, U>(
export function createResolver<T>(
signerFactory: CreateSigner<T>,
coinResolver: CoinResolver<T>,
): Resolver {
Expand All @@ -41,7 +41,7 @@ export function createResolver<T, U>(
/**
* Inject the `signer` so it can be used by the hw-signMessage function.
*/
export function createMessageSigner<T, U>(
export function createMessageSigner<T>(
signerFactory: CreateSigner<T>,
messageSigner: MessageSigner<T>,
): SignMessage {
Expand Down
3 changes: 2 additions & 1 deletion libs/ledger-live-common/src/families/tezos/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ const createSigner: CreateSigner<TezosSigner> = (transport: Transport) => {
rawTxHex: string,
options: {
curve?: Curve;
}) => xtz.signOperation(path, rawTxHex, options),
},
) => xtz.signOperation(path, rawTxHex, options),
// Tezos [LedgerSigner](https://www.npmjs.com/package/@taquito/ledger-signer)
createLedgerSigner: (path: string, prompt: boolean, derivationType: DerivationType) => {
return new LedgerSigner(xtz.transport, path, prompt, derivationType);
Expand Down

0 comments on commit dbb48b0

Please sign in to comment.