| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,7 +4,7 @@ | |||
| 4 | 4 | from bitsharesapi.bitsharesnoderpc import BitSharesNodeRPC | |
| 5 | 5 | from bitsharesbase.account import PublicKey | |
| 6 | 6 | from bitsharesbase import operations | |
| 7 | - from .storage import DefaultConfigurationStore | ||
| 7 | + from .storage import SqliteConfigurationStore | ||
| 8 | 8 | from .instance import set_shared_blockchain_instance, shared_blockchain_instance | |
| 9 | 9 | from .asset import Asset | |
| 10 | 10 | from .account import Account | |
@@ -138,7 +138,7 @@ def __init__(self, | |||
| 138 | 138 | # Store self.config for access through other Classes | |
| 139 | 139 | self.config = kwargs.get( | |
| 140 | 140 | "config_store", | |
| 141 | - DefaultConfigurationStore() | ||
| 141 | + SqliteConfigurationStore() | ||
| 142 | 142 | ) | |
| 143 | 143 | ||
| 144 | 144 | if not self.offline: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,6 @@ | |||
| 12 | 12 | InvalidMemoKeyException, | |
| 13 | 13 | WrongMemoKey | |
| 14 | 14 | ) | |
| 15 | - from .storage import configStorage as config | ||
| 16 | 15 | ||
| 17 | 16 | ||
| 18 | 17 | log = logging.getLogger(__name__) | |
@@ -61,8 +60,8 @@ def sign(self, account=None, **kwargs): | |||
| 61 | 60 | :returns: the signed message encapsulated in a known format | |
| 62 | 61 | """ | |
| 63 | 62 | if not account: | |
| 64 | - if "default_account" in config: | ||
| 65 | - account = config["default_account"] | ||
| 63 | + if "default_account" in self.blockchain.config: | ||
| 64 | + account = self.blockchain.config["default_account"] | ||
| 66 | 65 | if not account: | |
| 67 | 66 | raise ValueError("You need to provide an account") | |
| 68 | 67 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments