Skip to content

Commit

Permalink
rm unused fn
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed May 4, 2023
1 parent 9bce5d5 commit 6631001
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions client/tx/aux_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,25 +174,6 @@ func (b *AuxTxBuilder) SetNonCriticalExtensionOptions(extOpts ...*codectypes.Any
b.auxSignerData.SignDoc.BodyBytes = nil
}

func validateSignDocDirectAux(sd *txv1beta1.SignDocDirectAux) error {
// validate basic
if len(sd.BodyBytes) == 0 {
return sdkerrors.ErrInvalidRequest.Wrap("body bytes cannot be empty")
}

if sd.PublicKey == nil {
return sdkerrors.ErrInvalidPubKey.Wrap("public key cannot be empty")
}

if sd.Tip != nil {
if sd.Tip.Tipper == "" {
return sdkerrors.ErrInvalidRequest.Wrap("tipper cannot be empty")
}
}

return nil
}

// GetSignBytes returns the builder's sign bytes.
func (b *AuxTxBuilder) GetSignBytes() ([]byte, error) {
auxTx := b.auxSignerData
Expand Down

0 comments on commit 6631001

Please sign in to comment.