rige: for you

This commit is contained in:
Ethan Frey 2017-06-30 18:58:47 +02:00
parent 96348d2500
commit ad4e3a8b3b
1 changed files with 13 additions and 0 deletions

View File

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