Skip to content

Commit

Permalink
refactor: unnecessary error return of NewSigningOptions function (bac…
Browse files Browse the repository at this point in the history
…kport #21424) (#21427)

Co-authored-by: Hyde Zhang <[email protected]>
  • Loading branch information
mergify[bot] and xyz1hang authored Aug 27, 2024
1 parent 487d2f0 commit ab7c6ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/auth/tx/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ func NewTxConfig(protoCodec codec.Codec, addressCodec, validatorAddressCodec add

// NewSigningOptions returns signing options used by x/tx. This includes account and
// validator address prefix enabled codecs.
func NewSigningOptions(addressCodec, validatorAddressCodec address.Codec) (*txsigning.Options, error) {
func NewSigningOptions(addressCodec, validatorAddressCodec address.Codec) *txsigning.Options {
return &txsigning.Options{
AddressCodec: addressCodec,
ValidatorAddressCodec: validatorAddressCodec,
}, nil
}
}

// NewSigningHandlerMap returns a new txsigning.HandlerMap using the provided ConfigOptions.
Expand Down

0 comments on commit ab7c6ac

Please sign in to comment.