Skip to content

Commit

Permalink
fix: val addr not valid
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersuweijie committed Feb 27, 2024
1 parent f65c567 commit e21a78b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/allianced/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,11 @@ func initTestnetFiles(

genBalances = append(genBalances, banktypes.Balance{Address: addr.String(), Coins: coins.Sort()})
genAccounts = append(genAccounts, authtypes.NewBaseAccount(addr, nil, 0, 0))
valAddr := sdk.ValAddress(addr)

valTokens := sdk.TokensFromConsensusPower(100, sdk.DefaultPowerReduction)
createValMsg, err := stakingtypes.NewMsgCreateValidator(
addr.String(),
valAddr.String(),
valPubKeys[i],
sdk.NewCoin(sdk.DefaultBondDenom, valTokens),
stakingtypes.NewDescription(nodeDirName, "", "", "", ""),
Expand Down

0 comments on commit e21a78b

Please sign in to comment.