Skip to content

Commit

Permalink
remove redundant validatebasic (#357) (#358)
Browse files Browse the repository at this point in the history
Co-authored-by: Charly <[email protected]>
  • Loading branch information
github-actions[bot] and charleenfei authored Dec 12, 2022
1 parent bebf50c commit 96ea120
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 96ea120

Please sign in to comment.