Ejemplo n.º 1
0
 def load_settings(self):
     """
     Load json store settings to UI properties.
     """
     self.is_stored_mainnet = Settings.is_stored_mainnet()
     self.is_stored_testnet = Settings.is_stored_testnet()
     self.stored_gas_price = Settings.get_stored_gas_price()
     is_persistent_keystore = (
         Settings.is_persistent_keystore() and check_write_permission())
     self.set_persist_keystore_switch_state(is_persistent_keystore)
Ejemplo n.º 2
0
 def test_is_stored_mainnet(self):
     Settings.set_stored_network(ChainID.MAINNET)
     assert Settings.is_stored_mainnet() is True
     Settings.set_stored_network(ChainID.ROPSTEN)
     assert Settings.is_stored_mainnet() is False