Skip to content

Commit

Permalink
refactor: unnecessary error return of NewSigningOptions function (#21424
Browse files Browse the repository at this point in the history
)
  • Loading branch information
xyz1hang authored Aug 27, 2024
1 parent f0c0e81 commit ed25f88
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 ed25f88

Please sign in to comment.