This commit is contained in:
William Banfield
2022-03-04 17:20:37 -05:00
parent 794bed175d
commit 9481aac897
6 changed files with 18 additions and 17 deletions

View File

@@ -312,8 +312,8 @@ func (app *testApp) FinalizeBlock(req abci.RequestFinalizeBlock) abci.ResponseFi
AppVersion: 1,
},
},
Events: []abci.Event{},
TxResults: resTxs,
Events: []abci.Event{},
TxResults: resTxs,
}
}

View File

@@ -339,9 +339,9 @@ func txResultWithEvents(events []abci.Event) *abci.TxResult {
Index: 0,
Tx: tx,
Result: abci.ExecTxResult{
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Events: events,
},
}

View File

@@ -266,9 +266,9 @@ func txResultWithEvents(events []abci.Event) *abci.TxResult {
Index: 0,
Tx: types.Tx("HELLO WORLD"),
Result: abci.ExecTxResult{
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Events: events,
},
}

View File

@@ -44,9 +44,9 @@ func BenchmarkTxSearch(b *testing.B) {
Index: 0,
Tx: types.Tx(string(txBz)),
Result: abci.ExecTxResult{
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Events: events,
},
}

View File

@@ -323,9 +323,9 @@ func txResultWithEvents(events []abci.Event) *abci.TxResult {
Index: 0,
Tx: tx,
Result: abci.ExecTxResult{
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Events: events,
},
}
@@ -347,9 +347,9 @@ func benchmarkTxIndex(txsCount int64, b *testing.B) {
Index: txIndex,
Tx: tx,
Result: abci.ExecTxResult{
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Data: []byte{0},
Code: abci.CodeTypeOK,
Log: "",
Events: []abci.Event{},
},
}

View File

@@ -1,3 +1,4 @@
//go:build tools
// +build tools
// This file uses the recommended method for tracking developer tools in a go module.