mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
v4.13.0 and v1.10.0 (#1265)
* New versions * Minor fix [skip ci] * Minor UI enhancement for balance card * Minor UI enhancement * Add Monero build configs for MacOS [skip ci] * Add rest of Macos Configs [skip ci] * Delete empty file Save and report restore from backup exceptions [skip ci] * Minor fixes
This commit is contained in:
parent
fe2e26f146
commit
d8f1cdc7ef
33 changed files with 155 additions and 56 deletions
|
@ -102,8 +102,12 @@ abstract class PolygonWalletBase
|
|||
final Completer<SharedPreferences> _sharedPrefs = Completer();
|
||||
|
||||
Future<void> init() async {
|
||||
polygonErc20TokensBox = await CakeHive.openBox<Erc20Token>(
|
||||
"${walletInfo.name.replaceAll(" ", "_")}_${Erc20Token.polygonBoxName}");
|
||||
final boxName = "${walletInfo.name.replaceAll(" ", "_")}_ ${Erc20Token.polygonBoxName}";
|
||||
if (await CakeHive.boxExists(boxName)) {
|
||||
polygonErc20TokensBox = await CakeHive.openBox<Erc20Token>(boxName);
|
||||
} else {
|
||||
polygonErc20TokensBox = await CakeHive.openBox<Erc20Token>(boxName.replaceAll(" ", ""));
|
||||
}
|
||||
await walletAddresses.init();
|
||||
await transactionHistory.init();
|
||||
_polygonPrivateKey = await getPrivateKey(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue