Add the constructor for AddTicketCmd (#148)
This commit is contained in:
parent
14c7cc99d6
commit
084edf8e8b
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user