@@ -156,6 +156,7 @@ describe('SwapLayerParser', () => {
156
156
const txHash =
157
157
'32goGrEsPb6Kky65Z4wX6wswzjDbT9pBWs1HSZFsfWhxoA1fnSsoE9hJgtepPL8VyKQJUdRrfGWPrXCizDufArwR' ;
158
158
const result = await parser . parseTransaction ( txHash ) ;
159
+ expect ( result . length ) . toBe ( 1 ) ;
159
160
const expected = {
160
161
fill_id : 'BkWHY4H2kEVevdUeiRmFYNtg5zURRbTEtjt29KWdbjzV' ,
161
162
output_token : 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' ,
@@ -168,7 +169,7 @@ describe('SwapLayerParser', () => {
168
169
relaying_fee : '0' ,
169
170
} ;
170
171
171
- const serializedRes = seralizedRes ( result ) ;
172
+ const serializedRes = seralizedRes ( result [ 0 ] ) ;
172
173
expect ( serializedRes ) . toEqual ( expected ) ;
173
174
} ) ;
174
175
@@ -177,6 +178,7 @@ describe('SwapLayerParser', () => {
177
178
'4EWH6ZetTTjdYSbxqXddKNKLKDpBctELAhqChmkey2jwunZaj1Digj1fQxBMxtw6uhDeqkX3ev2vucu7jrexhWka' ;
178
179
179
180
const result = await parser . parseTransaction ( txHash ) ;
181
+ expect ( result . length ) . toBe ( 1 ) ;
180
182
181
183
const expected = {
182
184
recipient : 'FQ4PBuykgHqemPhqqktJL9y1L7oTbShYiwGkwgM1VceF' ,
@@ -190,7 +192,7 @@ describe('SwapLayerParser', () => {
190
192
staged_inbound : undefined ,
191
193
} ;
192
194
193
- const serializedRes = seralizedRes ( result ) ;
195
+ const serializedRes = seralizedRes ( result [ 0 ] ) ;
194
196
expect ( serializedRes ) . toEqual ( expected ) ;
195
197
} ) ;
196
198
@@ -199,6 +201,7 @@ describe('SwapLayerParser', () => {
199
201
'3Ufce773W4xgVsZiGBhSRPQssfaNdrEWeTBPLTnQSFZHsVx9ADaSN9yQBF6kcQMyDAoAnM3BVU88tQ2TbDZn1kUJ' ;
200
202
201
203
const result = await parser . parseTransaction ( txHash ) ;
204
+ expect ( result . length ) . toBe ( 1 ) ;
202
205
const expected = {
203
206
recipient : 'GcppBeM1UYGU4b7aX9uPAqL4ZEUThNHt5FpxPtzBE1xx' ,
204
207
tx_hash :
@@ -210,7 +213,7 @@ describe('SwapLayerParser', () => {
210
213
output_amount : '49564106' ,
211
214
staged_inbound : undefined ,
212
215
} ;
213
- const serializedRes = seralizedRes ( result ) ;
216
+ const serializedRes = seralizedRes ( result [ 0 ] ) ;
214
217
expect ( serializedRes ) . toEqual ( expected ) ;
215
218
} ) ;
216
219
@@ -219,6 +222,7 @@ describe('SwapLayerParser', () => {
219
222
'39K8aHVDmyAjne6J4PBFkvmKZH9CQR9QpbmTFafeiTLxeWg5n5RgcRdX5AYhebLR9shiUHrDeqg4YSD1EhRZNpS1' ;
220
223
221
224
const result = await parser . parseTransaction ( txHash ) ;
225
+ expect ( result . length ) . toBe ( 1 ) ;
222
226
const expected = {
223
227
fill_id : 'Hru6CBfyXtG18zF33DnXEjmECjgj1eMjNfPRaESBqpUr' ,
224
228
output_token : 'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB' ,
@@ -230,7 +234,7 @@ describe('SwapLayerParser', () => {
230
234
'39K8aHVDmyAjne6J4PBFkvmKZH9CQR9QpbmTFafeiTLxeWg5n5RgcRdX5AYhebLR9shiUHrDeqg4YSD1EhRZNpS1' ,
231
235
relaying_fee : '0' ,
232
236
} ;
233
- const serializedRes = seralizedRes ( result ) ;
237
+ const serializedRes = seralizedRes ( result [ 0 ] ) ;
234
238
expect ( serializedRes ) . toEqual ( expected ) ;
235
239
} ) ;
236
240
@@ -239,6 +243,7 @@ describe('SwapLayerParser', () => {
239
243
'eo2CugBsJ9Efbtg9TAiYyBvvZZsbh93ZZcLDxxjbmbEpZojCF8BDphVVrCjXtMkSLaP2EGQE5zSrjU4r6fxsxRP' ;
240
244
241
245
const result = await parser . parseTransaction ( txHash ) ;
246
+ expect ( result . length ) . toBe ( 1 ) ;
242
247
const expected = {
243
248
recipient : 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' ,
244
249
tx_hash :
@@ -250,7 +255,7 @@ describe('SwapLayerParser', () => {
250
255
output_amount : '0' ,
251
256
staged_inbound : 'ECiEWJndTfUJaEQ59gYgy6e4331mkrh1USQCmDcBwBvj' ,
252
257
} ;
253
- const serializedRes = seralizedRes ( result ) ;
258
+ const serializedRes = seralizedRes ( result [ 0 ] ) ;
254
259
expect ( serializedRes ) . toEqual ( expected ) ;
255
260
} ) ;
256
261
@@ -259,6 +264,7 @@ describe('SwapLayerParser', () => {
259
264
'4yCcw8MJ1BokhPJM2fQC3BMfoezteM4MkaHLfjPrLG25AEW4EeNxcNsrgU3ECkwQ1sy3AKFseafxM2mfjdwbzo8x' ;
260
265
261
266
const result = await parser . parseTransaction ( txHash ) ;
267
+ expect ( result . length ) . toBe ( 1 ) ;
262
268
const expected = {
263
269
fill_id : 'ESccxJbedTgsu7kwK6uNWnMrg3GiD7pgexXfWeyZNK3J' ,
264
270
output_token : 'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB' ,
@@ -270,7 +276,7 @@ describe('SwapLayerParser', () => {
270
276
'4yCcw8MJ1BokhPJM2fQC3BMfoezteM4MkaHLfjPrLG25AEW4EeNxcNsrgU3ECkwQ1sy3AKFseafxM2mfjdwbzo8x' ,
271
277
relaying_fee : '0' ,
272
278
} ;
273
- const serializedRes = seralizedRes ( result ) ;
279
+ const serializedRes = seralizedRes ( result [ 0 ] ) ;
274
280
expect ( serializedRes ) . toEqual ( expected ) ;
275
281
} ) ;
276
282
@@ -279,6 +285,7 @@ describe('SwapLayerParser', () => {
279
285
'2EFLPdYpdJzeoe4HD4fNRWwphhy9HyEHFj3EQtY9agUPmQ5LjJkXFjEt5dnshS9sSTby9nN2QF9BaCbVyiBFGLxj' ;
280
286
281
287
const result = await parser . parseTransaction ( txHash ) ;
288
+ expect ( result . length ) . toBe ( 1 ) ;
282
289
const expected = {
283
290
tx_hash :
284
291
'2EFLPdYpdJzeoe4HD4fNRWwphhy9HyEHFj3EQtY9agUPmQ5LjJkXFjEt5dnshS9sSTby9nN2QF9BaCbVyiBFGLxj' ,
@@ -290,7 +297,7 @@ describe('SwapLayerParser', () => {
290
297
output_amount : '6900000000' ,
291
298
staged_inbound : 'GFJ6699xu2BER8t98S4Vy6ZQam4mvr539AaqvHHBh9i3' ,
292
299
} ;
293
- const serializedRes = seralizedRes ( result ) ;
300
+ const serializedRes = seralizedRes ( result [ 0 ] ) ;
294
301
expect ( serializedRes ) . toEqual ( expected ) ;
295
302
} ) ;
296
303
} ) ;
0 commit comments