Add the constructor for AddTicketCmd (#148)

This commit is contained in:
C Jepson 2016-05-03 14:41:21 -04:00 committed by Alex Yocom-Piatt
parent 14c7cc99d6
commit 084edf8e8b

View File

@ -70,6 +70,11 @@ type AddTicketCmd struct {
TicketHex string `json:"tickethex"`
}
// NewAddTicketCmd creates a new AddTicketCmd.
func NewAddTicketCmd(ticketHex string) *AddTicketCmd {
return &AddTicketCmd{TicketHex: ticketHex}
}
// ConsolidateCmd is a type handling custom marshaling and
// unmarshaling of consolidate JSON wallet extension
// commands.