baseapp: add sdk.Result to simulation response

This commit is contained in:
Federico Kunze
2020-03-19 20:03:49 -03:00
parent 230a1e8ba3
commit eeea5ebf89
4 changed files with 26 additions and 6 deletions
+8 -1
View File
@@ -17,7 +17,7 @@ type GasInfo struct {
// GasWanted is the maximum units of work we allow this tx to perform.
GasWanted uint64
// GasUsed is the amount of gas actually consumed. NOTE: unimplemented
// GasUsed is the amount of gas actually consumed.
GasUsed uint64
}
@@ -35,6 +35,13 @@ type Result struct {
Events Events
}
// SimulationResponse defines the response generated when a transaction is successfully
// simulated by the Baseapp.
type SimulationResponse struct {
GasInfo
Result *Result
}
// ABCIMessageLogs represents a slice of ABCIMessageLog.
type ABCIMessageLogs []ABCIMessageLog