From eae5dc18610b73614de6677f53da05910db4ba3b Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Mon, 17 Apr 2017 20:10:31 -0400 Subject: [PATCH] tiny cleanup --- state/execution_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/state/execution_test.go b/state/execution_test.go index f6f1d9e95..249380b9f 100644 --- a/state/execution_test.go +++ b/state/execution_test.go @@ -173,8 +173,9 @@ func TestValidateInputsAdvanced(t *testing.T) { totalCoins, res = validateInputsAdvanced(accMap, signBytes, txs.Inputs) assert.True(res.IsOK(), "validateInputsAdvanced: expected no error on good tx input. Error: %v", res.Error()) - txsTotalCoins := txs.Inputs[0].Coins.Plus(txs.Inputs[1].Coins) - txsTotalCoins = txsTotalCoins.Plus(txs.Inputs[2].Coins) + txsTotalCoins := txs.Inputs[0].Coins. + Plus(txs.Inputs[1].Coins). + Plus(txs.Inputs[2].Coins) assert.True(totalCoins.IsEqual(txsTotalCoins), "ValidateInputsAdvanced: transaction total coins are not equal: got %v, expected %v", txsTotalCoins, totalCoins)