feat(transaction): #112 allow negative value without treasurechest for rebalancing
Some checks failed
Build Docker Image / Build-Docker-Image (push) Has been cancelled
Some checks failed
Build Docker Image / Build-Docker-Image (push) Has been cancelled
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user