baseapp: add sdk.Result to simulation response
This commit is contained in:
+8
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user