diff --git a/dcrjson/dcrwalletextcmds.go b/dcrjson/dcrwalletextcmds.go index 8fd5ac3a..19a7ab41 100644 --- a/dcrjson/dcrwalletextcmds.go +++ b/dcrjson/dcrwalletextcmds.go @@ -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.