Skip to content

Commit

Permalink
fix(connect): remove account.addresses from cardanoComposeTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan committed Jan 15, 2025
1 parent 948878e commit 1946d9f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const changeAddress = account.addresses.change.find(a => a.transfers === 0);
TrezorConnect.cardanoComposeTransaction({
account: {
descriptor: account.descriptor,
addresses: account.addresses,
utxo: account.utxo,
},
changeAddress,
Expand Down
8 changes: 1 addition & 7 deletions packages/connect/src/types/api/cardanoComposeTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { types, trezorUtils } from '@fivebinaries/coin-selection';
import { Static, Type } from '@trezor/schema-utils';

import { PROTO } from '../../exports';
import type { AccountAddresses, AccountUtxo } from '../../exports';
import type { AccountUtxo } from '../../exports';
import { DerivationPath, type Params, type Response } from '../params';
import { CardanoCertificatePointer, CardanoCertificate } from './cardano';
import type { CardanoInput, CardanoOutput } from './cardano';
Expand Down Expand Up @@ -60,7 +60,6 @@ export const AccountAddress = Type.Object(
export type CardanoComposeTransactionParams = {
account: {
descriptor: string;
addresses: AccountAddresses;
utxo: AccountUtxo[];
};
feeLevels?: { feePerUnit?: string }[];
Expand All @@ -79,11 +78,6 @@ export type CardanoComposeTransactionParamsSchema = Static<
export const CardanoComposeTransactionParamsSchema = Type.Object({
account: Type.Object({
descriptor: Type.String(),
addresses: Type.Object({
change: Type.Array(AccountAddress),
used: Type.Array(AccountAddress),
unused: Type.Array(AccountAddress),
}),
utxo: Type.Array(
Type.Object(
{
Expand Down
1 change: 0 additions & 1 deletion packages/suite/src/hooks/wallet/useCardanoStaking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ export const useCardanoStaking = (): CardanoStaking => {

const response = await trezorConnect.cardanoComposeTransaction({
account: {
addresses: account.addresses,
descriptor: account.descriptor,
utxo: account.utxo,
},
Expand Down
1 change: 0 additions & 1 deletion suite-common/wallet-core/src/send/sendFormCardanoThunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export const composeCardanoTransactionFeeLevelsThunk = createThunk<
outputs,
account: {
descriptor: account.descriptor,
addresses: account.addresses,
utxo: account.utxo,
},
changeAddress,
Expand Down

0 comments on commit 1946d9f

Please sign in to comment.