Skip to content

Commit

Permalink
remove redundant validatebasic (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
charleenfei committed Dec 9, 2022
1 parent 9359b06 commit e8388a0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions chain/cosmos/broadcaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,6 @@ func (b *Broadcaster) defaultTxFactory(clientCtx client.Context, accountNumber u
// BroadcastTx uses the provided Broadcaster to broadcast all the provided messages which will be signed
// by the User provided. The sdk.TxResponse and an error are returned.
func BroadcastTx(ctx context.Context, broadcaster *Broadcaster, broadcastingUser User, msgs ...sdk.Msg) (sdk.TxResponse, error) {
for _, msg := range msgs {
if err := msg.ValidateBasic(); err != nil {
return sdk.TxResponse{}, err
}
}

f, err := broadcaster.GetFactory(ctx, broadcastingUser)
if err != nil {
return sdk.TxResponse{}, err
Expand Down

0 comments on commit e8388a0

Please sign in to comment.