fix tests

This commit is contained in:
Jae Kwon
2014-10-11 21:27:58 -07:00
parent 02d1e7853e
commit 7652c5d0de
15 changed files with 239 additions and 200 deletions
-2
View File
@@ -39,13 +39,11 @@ func TestBlock(t *testing.T) {
BaseTx: randBaseTx(),
Fee: RandUInt64Exp(),
UnbondTo: RandUInt64Exp(),
Amount: RandUInt64Exp(),
}
unbondTx := &UnbondTx{
BaseTx: randBaseTx(),
Fee: RandUInt64Exp(),
Amount: RandUInt64Exp(),
}
timeoutTx := &TimeoutTx{
+3 -3
View File
@@ -20,7 +20,7 @@ Validation Txs:
type Tx interface {
Signable
GetSequence() uint64
GetSequence() uint
}
const (
@@ -83,7 +83,7 @@ func ReadTx(r io.Reader, n *int64, err *error) Tx {
//-----------------------------------------------------------------------------
type BaseTx struct {
Sequence uint64
Sequence uint
Signature
}
@@ -100,7 +100,7 @@ func (tx BaseTx) WriteTo(w io.Writer) (n int64, err error) {
return
}
func (tx *BaseTx) GetSequence() uint64 {
func (tx *BaseTx) GetSequence() uint {
return tx.Sequence
}