From 1d728ed3e84a285c9370c255dbad1a989fbb7428 Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Wed, 27 Mar 2019 15:53:59 -0400 Subject: [PATCH 1/2] Fix Proposal Stringer --- x/gov/proposals.go | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/x/gov/proposals.go b/x/gov/proposals.go index 46af23f40f09..91790d53115f 100644 --- a/x/gov/proposals.go +++ b/x/gov/proposals.go @@ -30,16 +30,19 @@ type Proposal struct { // nolint func (p Proposal) String() string { return fmt.Sprintf(`Proposal %d: - Title: %s - Type: %s - Status: %s - Submit Time: %s - Deposit End Time: %s - Total Deposit: %s - Voting Start Time: %s - Voting End Time: %s`, p.ProposalID, p.GetTitle(), p.ProposalType(), + Title: %s + Type: %s + Status: %s + Submit Time: %s + Deposit End Time: %s + Total Deposit: %s + Voting Start Time: %s + Voting End Time: %s + Description: %s`, + p.ProposalID, p.GetTitle(), p.ProposalType(), p.Status, p.SubmitTime, p.DepositEndTime, - p.TotalDeposit, p.VotingStartTime, p.VotingEndTime) + p.TotalDeposit, p.VotingStartTime, p.VotingEndTime, p.GetDescription(), + ) } // ProposalContent is an interface that has title, description, and proposaltype From 6f58ab7ce52aef5a429d823e7fc5df0af2e6cbcb Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Wed, 27 Mar 2019 15:55:59 -0400 Subject: [PATCH 2/2] Add pending log entry --- .../3986-Update-the-Stringer-implementation-of-the-Proposal-type | 1 + 1 file changed, 1 insertion(+) create mode 100644 .pending/improvements/sdk/3986-Update-the-Stringer-implementation-of-the-Proposal-type diff --git a/.pending/improvements/sdk/3986-Update-the-Stringer-implementation-of-the-Proposal-type b/.pending/improvements/sdk/3986-Update-the-Stringer-implementation-of-the-Proposal-type new file mode 100644 index 000000000000..670639d2b962 --- /dev/null +++ b/.pending/improvements/sdk/3986-Update-the-Stringer-implementation-of-the-Proposal-type @@ -0,0 +1 @@ +#3986 Update the Stringer implementation of the Proposal type.