refactor: restructure balance

This commit is contained in:
Matthew
2023-11-15 15:57:02 -06:00
parent e5ded1a726
commit 05ce7dad31
15 changed files with 54 additions and 71 deletions

View File

@@ -21,7 +21,7 @@ class TestLiveTxBuilder(unittest.TestCase):
)
wallet.apply_update(update)
self.assertGreater(wallet.get_balance().total(), 0)
self.assertGreater(wallet.get_balance().total, 0)
recipient = bdk.Address(
address = "tb1qrnfslnrve9uncz9pzpvf83k3ukz22ljgees989",

View File

@@ -21,7 +21,7 @@ class TestLiveWallet(unittest.TestCase):
)
wallet.apply_update(update)
self.assertGreater(wallet.get_balance().total(), 0)
self.assertGreater(wallet.get_balance().total, 0)
def test_broadcast_transaction(self):
descriptor: bdk.Descriptor = bdk.Descriptor(

View File

@@ -28,7 +28,7 @@ class TestSimpleWallet(unittest.TestCase):
bdk.Network.TESTNET
)
self.assertEqual(wallet.get_balance().total(), 0)
self.assertEqual(wallet.get_balance().total, 0)
if __name__ == '__main__':
unittest.main()