From 084edf8e8b3ac03ec091fecabbbc2ff9fef2d2fc Mon Sep 17 00:00:00 2001 From: C Jepson Date: Tue, 3 May 2016 14:41:21 -0400 Subject: [PATCH] Add the constructor for AddTicketCmd (#148) --- dcrjson/dcrwalletextcmds.go | 5 +++++ 1 file changed, 5 insertions(+) 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.