Skip to content

Commit

Permalink
Rename 1-proposal field in converters
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrasinskis committed Aug 4, 2023
1 parent 746dc3d commit ea3e292
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/nns/src/canisters/governance/request.converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ const fromSwapParameters = (
swapParameters.maximumParticipantIcp !== undefined
? [fromTokens(swapParameters.maximumParticipantIcp)]
: [],
neurons_fund_investment:
swapParameters.neuronsFundInvestment !== undefined
? [fromTokens(swapParameters.neuronsFundInvestment)]
neurons_fund_investment_icp:
swapParameters.neuronsFundInvestmentIcp !== undefined
? [fromTokens(swapParameters.neuronsFundInvestmentIcp)]
: [],
minimum_icp:
swapParameters.minimumIcp !== undefined
Expand Down
4 changes: 2 additions & 2 deletions packages/nns/src/canisters/governance/response.converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1155,8 +1155,8 @@ const toSwapParameters = (
maximumParticipantIcp: toTokens(
fromNullable(swapParameters.maximum_participant_icp),
),
neuronsFundInvestment: toTokens(
fromNullable(swapParameters.neurons_fund_investment),
neuronsFundInvestmentIcp: toTokens(
fromNullable(swapParameters.neurons_fund_investment_icp),
),
minimumIcp: toTokens(fromNullable(swapParameters.minimum_icp)),
minimumParticipantIcp: toTokens(
Expand Down
2 changes: 1 addition & 1 deletion packages/nns/src/types/governance_converters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ export interface SwapParameters {
neuronBasketConstructionParameters?: NeuronBasketConstructionParameters;
confirmationText?: string;
maximumParticipantIcp?: Tokens;
neuronsFundInvestment?: Tokens;
neuronsFundInvestmentIcp?: Tokens;
minimumIcp?: Tokens;
minimumParticipantIcp?: Tokens;
startTime?: GlobalTimeOfDay;
Expand Down

0 comments on commit ea3e292

Please sign in to comment.