Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitys7 committed Apr 23, 2024
1 parent 0bd64d1 commit 8a7b187
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/genutil/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ func CollectTxs(cdc codec.JSONCodec, txJSONDecoder sdk.TxDecoder, moniker, genTx
msgs := genTx.GetMsgs()

// TODO abstract out staking message validation back to staking
msg := msgs[0].(*stakingtypes.MsgCreateValidator)
msg, ok := msgs[0].(*stakingtypes.MsgCreateValidator)
if !ok {
return appGenTxs, persistentPeers, fmt.Errorf("expected msg should be stakingtypes.MsgCreateValidator, got %T", msgs[0])
}

// validate delegator and validator addresses and funds against the accounts in the state
delAddr := msg.DelegatorAddress
Expand Down

0 comments on commit 8a7b187

Please sign in to comment.