fix(sims): Minor fixes (#24095)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
co-authored by
mergify[bot]
Alex | Interchain Labs
parent
5254d57c5b
commit
7827aee97b
@@ -243,6 +243,7 @@ func SimulateFromSeedX(
|
||||
proposerAddress = validators.randomProposer(r)
|
||||
|
||||
if config.Commit {
|
||||
app.SimWriteState()
|
||||
if _, err := app.Commit(); err != nil {
|
||||
return params, fmt.Errorf("commit failed at height %d: %w", blockHeight, err)
|
||||
}
|
||||
@@ -342,10 +343,10 @@ func createBlockSimulator(tb testing.TB, printProgress bool, w io.Writer, params
|
||||
|
||||
if err != nil {
|
||||
logWriter.PrintLogs()
|
||||
tb.Fatalf(`error on block %d/%d, operation (%d/%d) from x/%s:
|
||||
tb.Fatalf(`error on block %d/%d, operation (%d/%d) from x/%s for msg %q:
|
||||
%v
|
||||
Comment: %s`,
|
||||
header.Height, config.NumBlocks, opCount, blocksize, opMsg.Route, err, opMsg.Comment)
|
||||
header.Height, config.NumBlocks, opCount, blocksize, opMsg.Route, opMsg.Name, err, opMsg.Comment)
|
||||
}
|
||||
|
||||
queueOperations(operationQueue, timeOperationQueue, futureOps)
|
||||
|
||||
Reference in New Issue
Block a user