Skip to content

Commit 0567b57

Browse files
authored
Merge branch 'ton-blockchain:mytonctrl2_dev' into mytonctrl2_dev
2 parents 1086f3c + 4ff8949 commit 0567b57

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

mytoncore/mytoncore.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,10 +1650,10 @@ def SaveElectionVarsToJsonFile(self, **kwargs):
16501650

16511651
def CreateWallet(self, name, workchain=0, version="v1", **kwargs):
16521652
self.local.add_log("start CreateWallet function", "debug")
1653-
subwalletDefault = 698983191 + workchain # 0x29A9A317 + workchain
1654-
subwallet = kwargs.get("subwallet", subwalletDefault)
1655-
walletPath = self.walletsDir + name
1656-
if os.path.isfile(walletPath + ".pk") and "v3" not in version:
1653+
subwallet_default = 698983191 + workchain # 0x29A9A317 + workchain
1654+
subwallet = kwargs.get("subwallet", subwallet_default)
1655+
wallet_path = self.walletsDir + name
1656+
if os.path.isfile(wallet_path + ".pk") and "v3" not in version:
16571657
self.local.add_log("CreateWallet error: Wallet already exists: " + name, "warning")
16581658
else:
16591659
fift_args = self.get_new_wallet_fift_args(version, workchain=workchain,
@@ -1670,15 +1670,15 @@ def CreateWallet(self, name, workchain=0, version="v1", **kwargs):
16701670

16711671
def CreateHighWallet(self, name, **kwargs):
16721672
workchain = kwargs.get("workchain", 0)
1673-
subwalletDefault = 698983191 + workchain # 0x29A9A317 + workchain
1674-
subwallet = kwargs.get("subwallet", subwalletDefault)
1673+
subwallet_default = 698983191 + workchain # 0x29A9A317 + workchain
1674+
subwallet = kwargs.get("subwallet", subwallet_default)
16751675
version = kwargs.get("version", "hv1")
16761676
self.local.AddLog("start CreateHighWallet function", "debug")
1677-
walletPath = self.walletsDir + name
1678-
if os.path.isfile(walletPath + ".pk") and os.path.isfile(walletPath + str(subwallet) + ".addr"):
1677+
wallet_path = self.walletsDir + name
1678+
if os.path.isfile(wallet_path + ".pk") and os.path.isfile(wallet_path + str(subwallet) + ".addr"):
16791679
self.local.AddLog("CreateHighWallet error: Wallet already exists: " + name + str(subwallet), "warning")
16801680
else:
1681-
args = ["new-highload-wallet.fif", workchain, subwallet, walletPath]
1681+
args = ["new-highload-wallet.fif", workchain, subwallet, wallet_path]
16821682
result = self.fift.Run(args)
16831683
if "Creating new high-load wallet" not in result:
16841684
raise Exception("CreateHighWallet error")

0 commit comments

Comments
 (0)