Skip to content

Commit 58e36e4

Browse files
[DDW-1179] Change Ledger voting aux data
1 parent 7fb4903 commit 58e36e4

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

source/common/types/hardware-wallets.types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ export type LedgerAuxiliaryDataType = {
148148
type: TxAuxiliaryDataType;
149149
params: {
150150
format: CIP36VoteRegistrationFormat;
151-
votingPublicKeyHex: string;
151+
voteKeyHex: string;
152152
stakingPath: BIP32Path;
153-
rewardsDestination: {
153+
paymentDestination: {
154154
type: TxOutputDestinationType;
155155
params: {
156156
type: AddressType;
@@ -209,7 +209,7 @@ export type LedgerSignTransactionResponse = {
209209
txHashHex: string;
210210
witnesses: Array<Witness>;
211211
auxiliaryDataSupplement?: {
212-
governanceVotingRegistrationSignatureHex: string;
212+
cip36VoteRegistrationSignatureHex: string;
213213
auxiliaryDataHashHex: string;
214214
type: 'catalyst_registration';
215215
};

source/renderer/app/components/wallet/receive/WalletReceiveDialog.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import { HW_SHELLEY_CONFIG } from '../../../config/hardwareWalletsConfig';
2525
import { hardenedPathToDerivationPath } from '../../../utils/hardwareWalletUtils';
2626
import { AddressVerificationCheckStatuses } from '../../../stores/HardwareWalletsStore';
2727
import LoadingSpinner from '../../widgets/LoadingSpinner';
28-
2928
import type { AddressVerificationCheckStatus } from '../../../stores/HardwareWalletsStore';
3029
import type { HwDeviceStatus } from '../../../domains/Wallet';
3130

source/renderer/app/stores/HardwareWalletsStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2639,7 +2639,7 @@ export default class HardwareWalletsStore extends Store {
26392639
txAuxiliaryData = cborizeTxAuxiliaryVotingData(
26402640
unsignedTxAuxiliaryData,
26412641
signedTransaction.auxiliaryDataSupplement
2642-
.governanceVotingRegistrationSignatureHex
2642+
.cip36VoteRegistrationSignatureHex
26432643
);
26442644
}
26452645

source/renderer/app/utils/shelleyLedger.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,15 +474,14 @@ export const prepareLedgerAuxiliaryData = (
474474
txAuxiliaryData: TxAuxiliaryData
475475
) => {
476476
const { votingPubKey, rewardDestinationAddress, type } = txAuxiliaryData;
477-
478477
if (type === CATALYST_VOTING_REGISTRATION_TYPE) {
479478
return {
480479
type: TxAuxiliaryDataType.CIP36_REGISTRATION,
481480
params: {
482481
format: CIP36VoteRegistrationFormat.CIP_15,
483-
votingPublicKeyHex: votingPubKey,
482+
voteKeyHex: votingPubKey,
484483
stakingPath: rewardDestinationAddress.stakingPath,
485-
rewardsDestination: {
484+
paymentDestination: {
486485
type: TxOutputDestinationType.DEVICE_OWNED,
487486
params: {
488487
type: AddressType.REWARD_KEY,

0 commit comments

Comments
 (0)