Fix for mutiny_wallet, handle new storage

This commit is contained in:
benthecarman
2023-05-06 14:15:01 -05:00
parent 1b3c73a40c
commit dfe87ce8a3
16 changed files with 105 additions and 106 deletions

View File

@@ -21,15 +21,15 @@ export default function BalanceBox() {
const fetchOnchainBalance = async () => {
console.log("Refetching onchain balance");
await state.mutiny_manager?.sync();
const balance = await state.mutiny_manager?.get_balance();
await state.mutiny_wallet?.sync();
const balance = await state.mutiny_wallet?.get_balance();
return balance
};
// TODO: it's hacky to do these separately, but ln doesn't need the sync so I don't want to wait
const fetchLnBalance = async () => {
console.log("Refetching ln balance");
const balance = await state.mutiny_manager?.get_balance();
const balance = await state.mutiny_wallet?.get_balance();
return balance
};