Skip to content

Commit

Permalink
chore(suite): send default affil values
Browse files Browse the repository at this point in the history
  • Loading branch information
marekrjpolak committed Jun 6, 2024
1 parent 0009dd0 commit 0d2b50a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion packages/coinjoin/src/client/round/transactionSigning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ const getTransactionData = (
outputs,
affiliateRequest: {
...getRoundParams(round.roundParameters),
...(options.affiliationId ? getAffiliateRequest(round.affiliateRequest) : {}),
...(options.affiliationId
? getAffiliateRequest(round.affiliateRequest)
: {
mask_public_key: '',
signature: '',
coinjoin_flags_array: [],
}),
},
};
};
Expand Down
2 changes: 1 addition & 1 deletion packages/coinjoin/src/types/coordinator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ interface CoinjoinAffiliateFields {
signature: string;
}

export interface CoinjoinAffiliateRequest extends Partial<CoinjoinAffiliateFields> {
export interface CoinjoinAffiliateRequest extends CoinjoinAffiliateFields {
fee_rate: number;
no_fee_threshold: number;
min_registrable_amount: number;
Expand Down
1 change: 0 additions & 1 deletion packages/suite/src/actions/wallet/coinjoinClientActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,6 @@ const signCoinjoinTx =
useEmptyPassphrase: device?.useEmptyPassphrase,
inputs: tx.inputs,
outputs: tx.outputs,
// @ts-expect-error wait for fw protobuf update
coinjoinRequest: tx.coinjoinRequest,
coin: network,
preauthorized: true,
Expand Down

0 comments on commit 0d2b50a

Please sign in to comment.