@@ -118,9 +118,9 @@ func (s *Service) chequebookLastPeerHandler(w http.ResponseWriter, r *http.Reque
118118 }
119119 if err == nil {
120120 lastSentResponse = & chequebookLastChequePeerResponse {
121- Beneficiary : lastSent .Cheque . Beneficiary .String (),
122- Chequebook : lastSent .Cheque . Chequebook .String (),
123- Payout : bigint .Wrap (lastSent .Cheque . CumulativePayout ),
121+ Beneficiary : lastSent .Beneficiary .String (),
122+ Chequebook : lastSent .Chequebook .String (),
123+ Payout : bigint .Wrap (lastSent .CumulativePayout ),
124124 }
125125 }
126126
@@ -134,9 +134,9 @@ func (s *Service) chequebookLastPeerHandler(w http.ResponseWriter, r *http.Reque
134134 }
135135 if err == nil {
136136 lastReceivedResponse = & chequebookLastChequePeerResponse {
137- Beneficiary : lastReceived .Cheque . Beneficiary .String (),
138- Chequebook : lastReceived .Cheque . Chequebook .String (),
139- Payout : bigint .Wrap (lastReceived .Cheque . CumulativePayout ),
137+ Beneficiary : lastReceived .Beneficiary .String (),
138+ Chequebook : lastReceived .Chequebook .String (),
139+ Payout : bigint .Wrap (lastReceived .CumulativePayout ),
140140 }
141141 }
142142
@@ -179,9 +179,9 @@ func (s *Service) chequebookAllLastHandler(w http.ResponseWriter, _ *http.Reques
179179 lcr [i ] = chequebookLastChequesPeerResponse {
180180 Peer : i ,
181181 LastSent : & chequebookLastChequePeerResponse {
182- Beneficiary : j .Cheque . Beneficiary .String (),
183- Chequebook : j .Cheque . Chequebook .String (),
184- Payout : bigint .Wrap (j .Cheque . CumulativePayout ),
182+ Beneficiary : j .Beneficiary .String (),
183+ Chequebook : j .Chequebook .String (),
184+ Payout : bigint .Wrap (j .CumulativePayout ),
185185 },
186186 LastReceived : nil ,
187187 }
@@ -190,19 +190,19 @@ func (s *Service) chequebookAllLastHandler(w http.ResponseWriter, _ *http.Reques
190190 if _ , ok := lcr [i ]; ok {
191191 t := lcr [i ]
192192 t .LastReceived = & chequebookLastChequePeerResponse {
193- Beneficiary : j .Cheque . Beneficiary .String (),
194- Chequebook : j .Cheque . Chequebook .String (),
195- Payout : bigint .Wrap (j .Cheque . CumulativePayout ),
193+ Beneficiary : j .Beneficiary .String (),
194+ Chequebook : j .Chequebook .String (),
195+ Payout : bigint .Wrap (j .CumulativePayout ),
196196 }
197197 lcr [i ] = t
198198 } else {
199199 lcr [i ] = chequebookLastChequesPeerResponse {
200200 Peer : i ,
201201 LastSent : nil ,
202202 LastReceived : & chequebookLastChequePeerResponse {
203- Beneficiary : j .Cheque . Beneficiary .String (),
204- Chequebook : j .Cheque . Chequebook .String (),
205- Payout : bigint .Wrap (j .Cheque . CumulativePayout ),
203+ Beneficiary : j .Beneficiary .String (),
204+ Chequebook : j .Chequebook .String (),
205+ Payout : bigint .Wrap (j .CumulativePayout ),
206206 },
207207 }
208208 }
0 commit comments