@@ -24,9 +24,6 @@ const { expect, assert } = chai;
24
24
import { INVALID_OPCODE , REVERT_ERROR } from "./constants/txn_error" ;
25
25
26
26
contract ( "{Set}" , ( accounts ) => {
27
- const components = [ ] ;
28
- const units = [ ] ;
29
-
30
27
let componentA : any ;
31
28
let unitsA : BigNumber ;
32
29
let componentB : any ;
@@ -40,10 +37,6 @@ contract("{Set}", (accounts) => {
40
37
const initialTokens : BigNumber = ether ( 100 ) ;
41
38
42
39
const TX_DEFAULTS = { from : testAccount } ;
43
- const EXPECTED_FAILURE_GAS_LIMIT_DEFAULT = 3000000 ;
44
-
45
- const setName = "TEST SET" ;
46
- const setSymbol = "TEST" ;
47
40
48
41
describe ( "{Set} creation" , async ( ) => {
49
42
beforeEach ( async ( ) => {
@@ -55,21 +48,10 @@ contract("{Set}", (accounts) => {
55
48
const setTokenInstance = await SetToken . new (
56
49
[ componentA . address , componentB . address ] ,
57
50
[ unitsA , unitsB ] ,
58
- setName ,
59
- setSymbol ,
60
51
TX_DEFAULTS ,
61
52
) ;
62
- // assert.exists(setTokenInstance, 'Set Token does not exist');
63
53
expect ( setTokenInstance ) . to . exist ;
64
54
65
- // // Assert correct name
66
- const setTokenName = await setTokenInstance . name ( TX_DEFAULTS ) ;
67
- assert . strictEqual ( setTokenName , setName ) ;
68
-
69
- // Assert correct symbol
70
- const setTokenSymbol = await setTokenInstance . symbol ( TX_DEFAULTS ) ;
71
- assert . strictEqual ( setTokenSymbol , setSymbol ) ;
72
-
73
55
// Assert correctness of number of components
74
56
const setTokenCount = await setTokenInstance . componentCount ( TX_DEFAULTS ) ;
75
57
expect ( setTokenCount ) . to . be . bignumber . equal ( 2 ) ;
@@ -104,16 +86,14 @@ contract("{Set}", (accounts) => {
104
86
SetToken . new (
105
87
[ componentA . address , componentB . address ] ,
106
88
[ unitsA ] ,
107
- setName ,
108
- setSymbol ,
109
89
TX_DEFAULTS ,
110
90
) ,
111
91
) . to . eventually . be . rejectedWith ( REVERT_ERROR ) ;
112
92
} ) ;
113
93
114
94
describe ( "should not allow creation of a {Set} with no inputs" , async ( ) => {
115
95
await expect (
116
- SetToken . new ( [ ] , [ ] , setName , setSymbol , TX_DEFAULTS ) ,
96
+ SetToken . new ( [ ] , [ ] , TX_DEFAULTS ) ,
117
97
) . to . eventually . be . rejectedWith ( REVERT_ERROR ) ;
118
98
} ) ;
119
99
@@ -124,16 +104,14 @@ contract("{Set}", (accounts) => {
124
104
SetToken . new (
125
105
[ componentA . address , componentB . address ] ,
126
106
[ unitsA , badUnit ] ,
127
- setName ,
128
- setSymbol ,
129
107
TX_DEFAULTS ,
130
108
) ,
131
109
) . to . eventually . be . rejectedWith ( REVERT_ERROR ) ;
132
110
} ) ;
133
111
134
112
it ( "should not allow creation of a {Set} with address of 0" , async ( ) => {
135
113
await expect (
136
- SetToken . new ( [ componentA . address , null ] , [ unitsA , unitsB ] , setName , setSymbol , TX_DEFAULTS ) ,
114
+ SetToken . new ( [ componentA . address , null ] , [ unitsA , unitsB ] , TX_DEFAULTS ) ,
137
115
) . to . eventually . be . rejectedWith ( REVERT_ERROR ) ;
138
116
} ) ;
139
117
@@ -149,8 +127,6 @@ contract("{Set}", (accounts) => {
149
127
setToken = await SetToken . new (
150
128
[ componentA . address , componentB . address ] ,
151
129
[ unitsA , unitsB ] ,
152
- setName ,
153
- setSymbol ,
154
130
TX_DEFAULTS ,
155
131
) ;
156
132
@@ -245,8 +221,6 @@ contract("{Set}", (accounts) => {
245
221
setToken = await SetToken . new (
246
222
[ componentA . address ] ,
247
223
[ halfGWeiUnits ] ,
248
- setName ,
249
- setSymbol ,
250
224
TX_DEFAULTS ,
251
225
) ;
252
226
@@ -282,12 +256,9 @@ contract("{Set}", (accounts) => {
282
256
// This unit represents a ten-thousandth of a gWei
283
257
const gWeiUnits = gWei ( 1 ) . div ( 10000 ) ;
284
258
285
- // This creates a SetToken with only one backing token.
286
259
setToken = await SetToken . new (
287
260
[ componentA . address ] ,
288
261
[ gWeiUnits ] ,
289
- setName ,
290
- setSymbol ,
291
262
TX_DEFAULTS ,
292
263
) ;
293
264
@@ -311,8 +282,6 @@ contract("{Set}", (accounts) => {
311
282
setToken = await SetToken . new (
312
283
[ componentB . address ] ,
313
284
[ overflowUnits ] ,
314
- setName ,
315
- setSymbol ,
316
285
TX_DEFAULTS ,
317
286
) ;
318
287
0 commit comments