@@ -83,7 +83,7 @@ describe('Umbra', () => {
83
83
it ( 'should not allow someone other than the owner to update the toll' , async ( ) => {
84
84
await expectRevert (
85
85
this . umbra . setToll ( deployedToll , { from : other } ) ,
86
- 'Ownable: caller is not the owner' ,
86
+ 'Ownable: caller is not the owner'
87
87
) ;
88
88
} ) ;
89
89
@@ -93,7 +93,7 @@ describe('Umbra', () => {
93
93
94
94
await expectRevert (
95
95
this . umbra . sendEth ( receiver1 , ...argumentBytes , { from : payer1 , value : paymentAmount } ) ,
96
- 'Umbra: Must pay more than the toll' ,
96
+ 'Umbra: Must pay more than the toll'
97
97
) ;
98
98
} ) ;
99
99
@@ -102,7 +102,7 @@ describe('Umbra', () => {
102
102
103
103
await expectRevert (
104
104
this . umbra . sendEth ( receiver1 , ...argumentBytes , { from : payer1 , value : toll } ) ,
105
- 'Umbra: Must pay more than the toll' ,
105
+ 'Umbra: Must pay more than the toll'
106
106
) ;
107
107
} ) ;
108
108
@@ -161,20 +161,16 @@ describe('Umbra', () => {
161
161
it ( 'should not let the eth receiver withdraw tokens' , async ( ) => {
162
162
await expectRevert (
163
163
this . umbra . withdrawToken ( acceptor , { from : receiver1 } ) ,
164
- 'Umbra: No tokens available for withdrawal' ,
164
+ 'Umbra: No tokens available for withdrawal'
165
165
) ;
166
166
} ) ;
167
167
168
168
it ( 'should not allow someone to pay with a token without sending the toll' , async ( ) => {
169
169
await expectRevert (
170
- this . umbra . sendToken (
171
- receiver2 ,
172
- this . token . address ,
173
- tokenAmount ,
174
- ...argumentBytes ,
175
- { from : payer2 } ,
176
- ) ,
177
- 'Umbra: Must pay the exact toll' ,
170
+ this . umbra . sendToken ( receiver2 , this . token . address , tokenAmount , ...argumentBytes , {
171
+ from : payer2 ,
172
+ } ) ,
173
+ 'Umbra: Must pay the exact toll'
178
174
) ;
179
175
} ) ;
180
176
@@ -183,14 +179,11 @@ describe('Umbra', () => {
183
179
const lessToll = toll . sub ( new BN ( '1' ) ) ;
184
180
185
181
await expectRevert (
186
- this . umbra . sendToken (
187
- receiver2 ,
188
- this . token . address ,
189
- tokenAmount ,
190
- ...argumentBytes ,
191
- { from : payer2 , value : lessToll } ,
192
- ) ,
193
- 'Umbra: Must pay the exact toll' ,
182
+ this . umbra . sendToken ( receiver2 , this . token . address , tokenAmount , ...argumentBytes , {
183
+ from : payer2 ,
184
+ value : lessToll ,
185
+ } ) ,
186
+ 'Umbra: Must pay the exact toll'
194
187
) ;
195
188
} ) ;
196
189
@@ -199,14 +192,11 @@ describe('Umbra', () => {
199
192
const moreToll = toll . add ( new BN ( '1' ) ) ;
200
193
201
194
await expectRevert (
202
- this . umbra . sendToken (
203
- receiver2 ,
204
- this . token . address ,
205
- tokenAmount ,
206
- ...argumentBytes ,
207
- { from : payer2 , value : moreToll } ,
208
- ) ,
209
- 'Umbra: Must pay the exact toll' ,
195
+ this . umbra . sendToken ( receiver2 , this . token . address , tokenAmount , ...argumentBytes , {
196
+ from : payer2 ,
197
+ value : moreToll ,
198
+ } ) ,
199
+ 'Umbra: Must pay the exact toll'
210
200
) ;
211
201
} ) ;
212
202
@@ -218,7 +208,7 @@ describe('Umbra', () => {
218
208
this . token . address ,
219
209
tokenAmount ,
220
210
...argumentBytes ,
221
- { from : payer2 , value : toll } ,
211
+ { from : payer2 , value : toll }
222
212
) ;
223
213
224
214
const contractBalance = await this . token . balanceOf ( this . umbra . address ) ;
@@ -303,7 +293,7 @@ describe('Umbra', () => {
303
293
it ( 'should not allow a non-receiver to withdraw tokens' , async ( ) => {
304
294
await expectRevert (
305
295
this . umbra . withdrawToken ( acceptor , { from : other } ) ,
306
- 'Umbra: No tokens available for withdrawal' ,
296
+ 'Umbra: No tokens available for withdrawal'
307
297
) ;
308
298
} ) ;
309
299
@@ -325,7 +315,7 @@ describe('Umbra', () => {
325
315
it ( 'should not allow a receiver to withdraw their tokens twice' , async ( ) => {
326
316
await expectRevert (
327
317
this . umbra . withdrawToken ( acceptor , { from : receiver2 } ) ,
328
- 'Umbra: No tokens available for withdraw' ,
318
+ 'Umbra: No tokens available for withdraw'
329
319
) ;
330
320
} ) ;
331
321
@@ -355,10 +345,7 @@ describe('Umbra', () => {
355
345
} ) ;
356
346
357
347
it ( 'should not allow someone else to move tolls to toll receiver' , async ( ) => {
358
- await expectRevert (
359
- this . umbra . collectTolls ( { from : other } ) ,
360
- 'Umbra: Not Toll Collector' ,
361
- ) ;
348
+ await expectRevert ( this . umbra . collectTolls ( { from : other } ) , 'Umbra: Not Toll Collector' ) ;
362
349
} ) ;
363
350
364
351
it ( 'should allow the toll collector to move tolls to toll receiver' , async ( ) => {
0 commit comments