@@ -65,7 +65,7 @@ describe('LimitOrderProtocol', async function () {
65
65
) ;
66
66
67
67
await expect (
68
- this . swap . fillOrder ( sentOrder , signature , '0x' , 1 , 0 , 1 )
68
+ this . swap . fillOrder ( sentOrder , signature , '0x' , 1 , 0 , 1 ) ,
69
69
) . to . eventually . be . rejectedWith ( 'BadSignature()' ) ;
70
70
} ) ;
71
71
@@ -83,7 +83,7 @@ describe('LimitOrderProtocol', async function () {
83
83
const signature = signOrder ( order , this . chainId , this . swap . address , addr1Wallet . getPrivateKey ( ) ) ;
84
84
85
85
await expect (
86
- this . swap . fillOrder ( order , signature , '0x' , 1 , 1 , 1 )
86
+ this . swap . fillOrder ( order , signature , '0x' , 1 , 1 , 1 ) ,
87
87
) . to . eventually . be . rejectedWith ( 'OnlyOneAmountShouldBeZero()' ) ;
88
88
} ) ;
89
89
@@ -101,7 +101,7 @@ describe('LimitOrderProtocol', async function () {
101
101
const signature = signOrder ( order , this . chainId , this . swap . address , addr1Wallet . getPrivateKey ( ) ) ;
102
102
103
103
await expect (
104
- this . swap . fillOrder ( order , signature , '0x' , 2 , 0 , 1 )
104
+ this . swap . fillOrder ( order , signature , '0x' , 2 , 0 , 1 ) ,
105
105
) . to . eventually . be . rejectedWith ( 'TakingAmountTooHigh()' ) ;
106
106
} ) ;
107
107
@@ -119,7 +119,7 @@ describe('LimitOrderProtocol', async function () {
119
119
const signature = signOrder ( order , this . chainId , this . swap . address , addr1Wallet . getPrivateKey ( ) ) ;
120
120
121
121
await expect (
122
- this . swap . fillOrder ( order , signature , '0x' , 0 , 2 , 3 )
122
+ this . swap . fillOrder ( order , signature , '0x' , 0 , 2 , 3 ) ,
123
123
) . to . eventually . be . rejectedWith ( 'MakingAmountTooLow()' ) ;
124
124
} ) ;
125
125
@@ -255,7 +255,7 @@ describe('LimitOrderProtocol', async function () {
255
255
const signature = signOrder ( order , this . chainId , this . swap . address , addr1Wallet . getPrivateKey ( ) ) ;
256
256
257
257
await expect (
258
- this . swap . fillOrder ( order , signature , '0x' , 0 , 4 , 0 )
258
+ this . swap . fillOrder ( order , signature , '0x' , 0 , 4 , 0 ) ,
259
259
) . to . eventually . be . rejectedWith ( 'SwapWithZeroAmount()' ) ;
260
260
} ) ;
261
261
@@ -401,7 +401,7 @@ describe('LimitOrderProtocol', async function () {
401
401
const permit = await getPermit ( addr0 , otherWallet . getPrivateKey ( ) , this . weth , '1' , this . chainId , swap . address , '1' ) ;
402
402
const targetPermitPair = withTarget ( this . weth . address , permit ) ;
403
403
await expect (
404
- swap . fillOrderToWithPermit ( order , signature , '0x' , 0 , 1 , 1 , addr0 , targetPermitPair )
404
+ swap . fillOrderToWithPermit ( order , signature , '0x' , 0 , 1 , 1 , addr0 , targetPermitPair ) ,
405
405
) . to . eventually . be . rejectedWith ( 'ERC20Permit: invalid signature' ) ;
406
406
} ) ;
407
407
@@ -422,7 +422,7 @@ describe('LimitOrderProtocol', async function () {
422
422
const permit = await getPermit ( addr0 , addr1Wallet . getPrivateKey ( ) , this . weth , '1' , this . chainId , swap . address , '1' , deadline ) ;
423
423
const targetPermitPair = withTarget ( this . weth . address , permit ) ;
424
424
await expect (
425
- swap . fillOrderToWithPermit ( order , signature , '0x' , 0 , 1 , 1 , addr0 , targetPermitPair )
425
+ swap . fillOrderToWithPermit ( order , signature , '0x' , 0 , 1 , 1 , addr0 , targetPermitPair ) ,
426
426
) . to . eventually . be . rejectedWith ( 'expired deadline' ) ;
427
427
} ) ;
428
428
} ) ;
@@ -468,7 +468,7 @@ describe('LimitOrderProtocol', async function () {
468
468
const signature = signOrder ( order , this . chainId , this . swap . address , addr1Wallet . getPrivateKey ( ) ) ;
469
469
470
470
await expect (
471
- this . swap . fillOrder ( order , signature , '0x' , 5 , 0 , 5 )
471
+ this . swap . fillOrder ( order , signature , '0x' , 5 , 0 , 5 ) ,
472
472
) . to . eventually . be . rejectedWith ( 'WrongAmount()' ) ;
473
473
} ) ;
474
474
@@ -511,7 +511,7 @@ describe('LimitOrderProtocol', async function () {
511
511
const signature = signOrder ( order , this . chainId , this . swap . address , addr1Wallet . getPrivateKey ( ) ) ;
512
512
513
513
await expect (
514
- this . swap . fillOrder ( order , signature , '0x' , 0 , 5 , 5 )
514
+ this . swap . fillOrder ( order , signature , '0x' , 0 , 5 , 5 ) ,
515
515
) . to . eventually . be . rejectedWith ( 'WrongAmount()' ) ;
516
516
} ) ;
517
517
} ) ;
@@ -538,7 +538,7 @@ describe('LimitOrderProtocol', async function () {
538
538
539
539
it ( 'should not cancel foreign order' , async function ( ) {
540
540
await expect (
541
- this . swap . cancelOrder ( this . order )
541
+ this . swap . cancelOrder ( this . order ) ,
542
542
) . to . eventually . be . rejectedWith ( 'AccessDenied()' ) ;
543
543
} ) ;
544
544
@@ -548,7 +548,7 @@ describe('LimitOrderProtocol', async function () {
548
548
await this . swap . cancelOrder ( this . order , { from : addr1 } ) ;
549
549
550
550
await expect (
551
- this . swap . fillOrder ( this . order , signature , '0x' , 1 , 0 , 1 )
551
+ this . swap . fillOrder ( this . order , signature , '0x' , 1 , 0 , 1 ) ,
552
552
) . to . eventually . be . rejectedWith ( 'RemainingAmountIsZero()' ) ;
553
553
} ) ;
554
554
} ) ;
@@ -672,7 +672,7 @@ describe('LimitOrderProtocol', async function () {
672
672
const signature = signOrder ( order , this . chainId , this . swap . address , addr1Wallet . getPrivateKey ( ) ) ;
673
673
674
674
await expect (
675
- this . swap . fillOrder ( order , signature , '0x' , 1 , 0 , 1 )
675
+ this . swap . fillOrder ( order , signature , '0x' , 1 , 0 , 1 ) ,
676
676
) . to . eventually . be . rejectedWith ( 'PredicateIsNotTrue()' ) ;
677
677
} ) ;
678
678
@@ -779,7 +779,7 @@ describe('LimitOrderProtocol', async function () {
779
779
const signature = signOrder ( order , this . chainId , this . swap . address , addr1Wallet . getPrivateKey ( ) ) ;
780
780
781
781
await expect (
782
- this . swap . fillOrder ( order , signature , '0x' , 1 , 0 , 1 )
782
+ this . swap . fillOrder ( order , signature , '0x' , 1 , 0 , 1 ) ,
783
783
) . to . eventually . be . rejectedWith ( 'PredicateIsNotTrue()' ) ;
784
784
} ) ;
785
785
} ) ;
@@ -831,7 +831,7 @@ describe('LimitOrderProtocol', async function () {
831
831
const signature = signOrder ( order , this . chainId , this . swap . address , addr1Wallet . getPrivateKey ( ) ) ;
832
832
833
833
await expect (
834
- this . swap . fillOrder ( order , signature , '0x' , 1 , 0 , 1 )
834
+ this . swap . fillOrder ( order , signature , '0x' , 1 , 0 , 1 ) ,
835
835
) . to . eventually . be . rejectedWith ( 'PredicateIsNotTrue()' ) ;
836
836
} ) ;
837
837
0 commit comments