Browse Source

fix tests

pull/412/head
Ethan Buchman 8 years ago
parent
commit
7fbe8e47d4
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      rpc/client/mock/abci.go
  2. +1
    -1
      state/execution_test.go

+ 2
- 2
rpc/client/mock/abci.go View File

@ -45,7 +45,7 @@ func (a ABCIApp) BroadcastTxAsync(tx types.Tx) (*ctypes.ResultBroadcastTx, error
if c.IsOK() { if c.IsOK() {
go func() { a.App.DeliverTx(tx) }() go func() { a.App.DeliverTx(tx) }()
} }
return &ctypes.ResultBroadcastTx{c.Code, c.Data, c.Log}, nil
return &ctypes.ResultBroadcastTx{c.Code, c.Data, c.Log, tx.Hash()}, nil
} }
func (a ABCIApp) BroadcastTxSync(tx types.Tx) (*ctypes.ResultBroadcastTx, error) { func (a ABCIApp) BroadcastTxSync(tx types.Tx) (*ctypes.ResultBroadcastTx, error) {
@ -54,7 +54,7 @@ func (a ABCIApp) BroadcastTxSync(tx types.Tx) (*ctypes.ResultBroadcastTx, error)
if c.IsOK() { if c.IsOK() {
go func() { a.App.DeliverTx(tx) }() go func() { a.App.DeliverTx(tx) }()
} }
return &ctypes.ResultBroadcastTx{c.Code, c.Data, c.Log}, nil
return &ctypes.ResultBroadcastTx{c.Code, c.Data, c.Log, tx.Hash()}, nil
} }
// ABCIMock will send all abci related request to the named app, // ABCIMock will send all abci related request to the named app,


+ 1
- 1
state/execution_test.go View File

@ -81,7 +81,7 @@ type dummyIndexer struct {
Indexed int Indexed int
} }
func (indexer *dummyIndexer) Tx(hash string) (*types.TxResult, error) {
func (indexer *dummyIndexer) Tx(hash []byte) (*types.TxResult, error) {
return nil, nil return nil, nil
} }
func (indexer *dummyIndexer) Batch(batch *txindexer.Batch) error { func (indexer *dummyIndexer) Batch(batch *txindexer.Batch) error {


Loading…
Cancel
Save