|
@@ -97,14 +97,14 @@ def save_wallet(ntw_i, new_wallet_dictionary):
|
|
|
all_wallets = json.load(f)
|
|
all_wallets = json.load(f)
|
|
|
|
|
|
|
|
|
|
|
|
|
- dict_0 = all_wallets['evm_wallets']
|
|
|
|
|
- dict_1 = all_wallets['spl_wallets']
|
|
|
|
|
- dicts = [dict_0,dict_1]
|
|
|
|
|
- dict = dicts[ntw_i]
|
|
|
|
|
|
|
+ dict_0 = all_wallets['evm_wallets']
|
|
|
|
|
+ dict_1 = all_wallets['spl_wallets']
|
|
|
|
|
+ dicts = [dict_0,dict_1]
|
|
|
|
|
+ dict = dicts[ntw_i]
|
|
|
|
|
|
|
|
- dict.update(new_wallet_dictionary)
|
|
|
|
|
- with open(filename, 'w') as f:
|
|
|
|
|
- json.dump(all_wallets,f)
|
|
|
|
|
|
|
+ dict.update(new_wallet_dictionary)
|
|
|
|
|
+ with open(filename, 'w') as f:
|
|
|
|
|
+ json.dump(all_wallets,f, indent=4)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -133,7 +133,7 @@ def refactor_wallet(addresses, new_wallet):
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
new_wallet_dictionary[username]["wallets"].update(wallet)
|
|
new_wallet_dictionary[username]["wallets"].update(wallet)
|
|
|
- print(f"\n\n\n{new_wallet_dictionary}")
|
|
|
|
|
|
|
+ # print(f"\n\n\n{new_wallet_dictionary}")
|
|
|
|
|
|
|
|
return new_wallet_dictionary
|
|
return new_wallet_dictionary
|
|
|
|
|
|