int/nonce fixes

This commit is contained in:
Ethan Buchman
2015-05-27 15:24:45 -04:00
parent 37a8a6cd65
commit 19bd3bb2e2
3 changed files with 17 additions and 33 deletions

View File

@ -237,7 +237,7 @@ func testNameReg(t *testing.T, typ string) {
// try to update as non owner, should fail
nonce := getNonce(t, typ, user[1].Address)
data2 := "this is not my beautiful house"
tx = types.NewNameTxWithNonce(user[1].PubKey, name, data2, amt, fee, nonce)
tx = types.NewNameTxWithNonce(user[1].PubKey, name, data2, amt, fee, nonce+1)
tx.Sign(user[1])
_, err := client.BroadcastTx(tx)
if err == nil {