Skip to content

Commit

Permalink
fix: add block time
Browse files Browse the repository at this point in the history
  • Loading branch information
tbruyelle committed Jan 18, 2025
1 parent d5445ee commit 9350fc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tally_genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"
"fmt"
"os"
"time"

"github.com/atomone-hub/atomone/cmd/atomoned/cmd"
"github.com/atomone-hub/atomone/x/gov"
Expand Down Expand Up @@ -283,7 +284,8 @@ func newContext(ctx context.Context, keys map[string]*storetypes.KVStoreKey) sdk
if err != nil {
panic(err)
}
return sdk.NewContext(cms, tmproto.Header{}, false, log.NewNopLogger()).WithContext(ctx)
return sdk.NewContext(cms, tmproto.Header{}, false, log.NewNopLogger()).
WithContext(ctx).WithBlockTime(time.Now())
}

func convertAddrsToGovAddrs(addrs []sdk.AccAddress) []govtypes.GovernorAddress {
Expand Down

0 comments on commit 9350fc9

Please sign in to comment.