File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -186,10 +186,18 @@ export class Client {
186
186
let endpoint , request_body ;
187
187
if ( Array . isArray ( args ) ) {
188
188
endpoint = "/payments/keysend/multi" ;
189
- request_body = { keysends : args } ;
189
+ request_body = {
190
+ keysends : args . map ( ( args ) => ( {
191
+ ...args ,
192
+ custom_records : args . customRecords ,
193
+ } ) ) ,
194
+ } ;
190
195
} else {
191
196
endpoint = "/payments/keysend" ;
192
- request_body = args ;
197
+ request_body = {
198
+ ...args ,
199
+ custom_records : args . customRecords ,
200
+ } ;
193
201
}
194
202
return rest ( {
195
203
auth : this . auth ,
@@ -259,7 +267,7 @@ export class Client {
259
267
const params = {
260
268
destination :
261
269
"030a58b8653d32b99200a2334cfe913e51dc7d155aa0116c176657a4f1722677a3" ,
262
- customRecords : {
270
+ custom_records : {
263
271
"696969" : args . account ,
264
272
} ,
265
273
amount : args . amount ,
Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ export function keysendParamsFromBoostagram(
17
17
return {
18
18
destination : boostagramParams . recipient . address ,
19
19
amount : boostagramParams . amount ,
20
- customRecords : customRecords ,
20
+ custom_records : customRecords ,
21
21
} ;
22
22
}
You can’t perform that action at this time.
0 commit comments