From 2e9d1e4a8df771618c6e956745a63fe09dfb9de2 Mon Sep 17 00:00:00 2001 From: Tim Wundenberg Date: Mon, 19 May 2025 13:03:16 +0200 Subject: [PATCH] feat(transaction): #112 allow negative value without treasurechest for rebalancing --- service/transaction.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/service/transaction.go b/service/transaction.go index b90a957..cf628c2 100644 --- a/service/transaction.go +++ b/service/transaction.go @@ -551,9 +551,7 @@ func updateErrors(transaction *types.Transaction) { error := "" if transaction.Value < 0 { - if transaction.AccountId == nil { - error = "no account specified" - } else if transaction.TreasureChestId == nil { + if transaction.TreasureChestId == nil { error = "no treasure chest specified" } } else if transaction.Value > 0 {