@@ -15,9 +15,8 @@ contract OrdersTest is Test {
15
15
IOrders.Input[] public inputs;
16
16
IOrders.Output[] public outputs;
17
17
18
- mapping (address => bool ) isToken;
19
-
20
18
address token;
19
+ address token2;
21
20
uint32 chainId = 3 ;
22
21
address recipient = address (0x123 );
23
22
uint256 amount = 200 ;
@@ -29,16 +28,20 @@ contract OrdersTest is Test {
29
28
30
29
event Sweep (address indexed recipient , address indexed token , uint256 amount );
31
30
32
- function setUp () public {
31
+ function setUp () public virtual {
33
32
target = new RollupOrders (address (0 ));
34
33
35
34
// setup token
36
35
token = address (new TestERC20 ("hi " , "HI " ));
37
36
TestERC20 (token).mint (address (this ), amount * 10000 );
38
37
TestERC20 (token).approve (address (target), amount * 10000 );
39
- isToken[token] = true ;
40
38
41
- // setup Order Inputs/Outputs
39
+ // setup second token
40
+ token2 = address (new TestERC20 ("bye " , "BYE " ));
41
+ TestERC20 (token2).mint (address (this ), amount * 10000 );
42
+ TestERC20 (token2).approve (address (target), amount * 10000 );
43
+
44
+ // setup simple Order Inputs/Outputs
42
45
IOrders.Input memory input = IOrders.Input (token, amount);
43
46
inputs.push (input);
44
47
@@ -90,11 +93,6 @@ contract OrdersTest is Test {
90
93
91
94
// input multiple ERC20s
92
95
function test_initiate_multiERC20 () public {
93
- // setup second token
94
- address token2 = address (new TestERC20 ("bye " , "BYE " ));
95
- TestERC20 (token2).mint (address (this ), amount * 10000 );
96
- TestERC20 (token2).approve (address (target), amount * 10000 );
97
-
98
96
// add second token input
99
97
inputs.push (IOrders.Input (token2, amount * 2 ));
100
98
0 commit comments