@@ -24,6 +24,7 @@ def test_add_and_replace(self):
2424 "add" ,
2525 {"from" : accounts [0 ]},
2626 initializer .address ,
27+ initializer_params = ["Moonstream DAO" , "MNSTR" ],
2728 )
2829
2930 diamond_erc20 = ERC20Facet .ERC20Facet (diamond_address )
@@ -39,19 +40,6 @@ def test_add_and_replace(self):
3940 expected_decimals = 18
4041 self .assertEqual (decimals , expected_decimals )
4142
42- with self .assertRaises (Exception ):
43- diamond_erc20 .set_erc20_metadata ("LOL" , "ROFL" , {"from" : accounts [1 ]})
44-
45- diamond_erc20 .set_erc20_metadata ("LOL" , "ROFL" , {"from" : accounts [0 ]})
46-
47- name = diamond_erc20 .name ()
48- expected_name = "LOL"
49- self .assertEqual (name , expected_name )
50-
51- symbol = diamond_erc20 .symbol ()
52- expected_symbol = "ROFL"
53- self .assertEqual (symbol , expected_symbol )
54-
5543 new_erc20_facet = ERC20Facet .ERC20Facet (None )
5644 new_erc20_facet .deploy ({"from" : accounts [0 ]})
5745 facet_cut (
@@ -61,14 +49,15 @@ def test_add_and_replace(self):
6149 "replace" ,
6250 {"from" : accounts [0 ]},
6351 initializer .address ,
52+ initializer_params = ["ROFL" , "LOL" ],
6453 )
6554
6655 name = diamond_erc20 .name ()
67- expected_name = "Moonstream DAO "
56+ expected_name = "ROFL "
6857 self .assertEqual (name , expected_name )
6958
7059 symbol = diamond_erc20 .symbol ()
71- expected_symbol = "MNSTR "
60+ expected_symbol = "LOL "
7261 self .assertEqual (symbol , expected_symbol )
7362
7463
@@ -88,6 +77,7 @@ def test_remove_facet(self):
8877 "add" ,
8978 {"from" : accounts [0 ]},
9079 initializer .address ,
80+ initializer_params = ["Moonstream DAO" , "MNSTR" ],
9181 )
9282
9383 diamond_erc20 = ERC20Facet .ERC20Facet (diamond_address )
0 commit comments