feat(transaction): #112 allow negative value without treasurechest for rebalancing

This commit is contained in:
2025-05-19 13:03:16 +02:00
parent e8a1c55424
commit 2e9d1e4a8d

View File

@@ -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 {