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)