diff --git a/rpc/client/examples_test.go b/rpc/client/examples_test.go index 1591862cf..163093c84 100644 --- a/rpc/client/examples_test.go +++ b/rpc/client/examples_test.go @@ -49,7 +49,7 @@ func TestHTTPSimple(t *testing.T) { if err != nil { log.Fatal(err) } - if bres.CheckTx.IsErr() || bres.DeliverTx.IsErr() { + if bres.CheckTx.IsErr() || bres.TxResult.IsErr() { log.Fatal("BroadcastTxCommit transaction failed") } diff --git a/rpc/client/rpc_test.go b/rpc/client/rpc_test.go index 3ad241380..7d3726496 100644 --- a/rpc/client/rpc_test.go +++ b/rpc/client/rpc_test.go @@ -324,7 +324,7 @@ func TestClientMethodCalls(t *testing.T) { k, v, tx := MakeTxKV() bres, err := c.BroadcastTxCommit(ctx, tx) require.NoError(t, err) - require.True(t, bres.DeliverTx.IsOK()) + require.True(t, bres.TxResult.IsOK()) txh := bres.Height apph := txh + 1 // this is where the tx will be applied to the state @@ -443,7 +443,7 @@ func TestClientMethodCalls(t *testing.T) { bres, err := c.BroadcastTxCommit(ctx, tx) require.NoError(t, err, "%d: %+v", i, err) require.True(t, bres.CheckTx.IsOK()) - require.True(t, bres.DeliverTx.IsOK()) + require.True(t, bres.TxResult.IsOK()) require.Equal(t, 0, pool.Size()) })