From 87e0c1fa465b8d7140dce191dd2a99b054527ff2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thoralf=20M=C3=BCller?= Date: Wed, 20 Mar 2024 15:27:24 +0100 Subject: [PATCH] Merge delegation_implicit_accounts_amount with locked_amount --- sdk/src/wallet/operations/balance.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/src/wallet/operations/balance.rs b/sdk/src/wallet/operations/balance.rs index 5485449913..bc6a208788 100644 --- a/sdk/src/wallet/operations/balance.rs +++ b/sdk/src/wallet/operations/balance.rs @@ -114,7 +114,7 @@ impl Wallet { Output::Delegation(delegation) => { // Add amount balance.base_coin.total += delegation.amount(); - delegation_implicit_accounts_amount += delegation.amount(); + locked_amount += delegation.amount(); // Add mana rewards reward_outputs.insert(*output_id); // Add storage deposit @@ -139,7 +139,7 @@ impl Wallet { // Add amount balance.base_coin.total += output.amount(); if address_unlock_cond.address().kind() == ImplicitAccountCreationAddress::KIND { - delegation_implicit_accounts_amount += output.amount(); + locked_amount += output.amount(); } // Add decayed mana balance.mana.total += output.decayed_mana(