From ad4e3a8b3b3c2c10701b034d5214704050150950 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Fri, 30 Jun 2017 18:58:47 +0200 Subject: [PATCH] rige: for you --- state/execution_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/state/execution_test.go b/state/execution_test.go index b69e66c40..91ce5a6ec 100644 --- a/state/execution_test.go +++ b/state/execution_test.go @@ -298,6 +298,19 @@ func TestSendTx(t *testing.T) { res, _, _, _, _ = et.exec(tx, true) assert.True(res.IsOK(), "ExecTx/Good CheckTx: Expected OK return from ExecTx, Error: %v", res) + // rige: go hack the cli and abuse this to steal some coinz.... I'm not fixing, but re-writing SendTx + //Negative CheckTx + // et.reset() + // et.acc2State(et.accIn) + // et.acc2State(et.accOut) + // tx2 := types.MakeSendTx(1, et.accOut, et.accIn) + // tx2.Fee = types.Coin{"mycoin", 0} + // tx2.Inputs[0].Coins = types.Coins{{"mycoin", -5}} + // tx2.Outputs[0].Coins = types.Coins{{"mycoin", -5}} + // et.signTx(tx2, et.accIn) + // res, _, _, _, _ = et.exec(tx2, true) + // assert.True(res.IsErr(), "ExecTx/Bad CheckTx: Expected error return from ExecTx, returned: %v", res) + //Regular DeliverTx et.reset() et.acc2State(et.accIn)