Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danil-lashin committed May 4, 2022
1 parent 3f6a0c3 commit c84200b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion auto-tests/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ rpc_addr = "http://127.0.0.1:26657"`
testTxTimeoutDifferentDecimals(ctx)
ctx.TestsWg.Wait()

println("All tests are done in %s", time.Now().Sub(globalStartTime).String())
println("All tests are done in", time.Now().Sub(globalStartTime).String())
}

func testStartFromPreviousGenesis(ctx *Context) {
Expand Down
12 changes: 7 additions & 5 deletions module/x/mhub2/keeper/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,16 @@ func ExportGenesis(ctx sdk.Context, k Keeper) types.GenesisState {

for _, chainId := range chains {
var (
delegates = k.getDelegateKeys(ctx, chainId)
nonces = k.getNonces(ctx, chainId)
lastobserved = k.GetLastObservedEventNonce(ctx, chainId)
lastobservedvalset = k.GetLastObservedSignerSetTx(ctx, chainId)
delegates = k.getDelegateKeys(ctx, chainId)
nonces = k.getNonces(ctx, chainId)
lastobserved = k.GetLastObservedEventNonce(ctx, chainId)
lastobservedvalset = k.GetLastObservedSignerSetTx(ctx, chainId)
lastoutgoingbatchnonce = k.getLastOutgoingBatchNonce(ctx, chainId)
)

if chainId == "minter" {
lastobserved = 0
lastoutgoingbatchnonce = 0
}

for i := range nonces {
Expand All @@ -137,7 +139,7 @@ func ExportGenesis(ctx sdk.Context, k Keeper) types.GenesisState {
LastObservedEventNonce: lastobserved,
Sequence: k.getOutgoingSequence(ctx, chainId),
LastObservedValset: lastobservedvalset,
LastOutgoingBatchTxNonce: k.getLastOutgoingBatchNonce(ctx, chainId),
LastOutgoingBatchTxNonce: lastoutgoingbatchnonce,
})
}

Expand Down

0 comments on commit c84200b

Please sign in to comment.