refactor: unnecessary error return of NewSigningOptions function (#21424)

This commit is contained in:
Hyde Zhang 2024-08-27 19:04:40 +01:00 committed by GitHub
parent f0c0e8154f
commit ed25f88a13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.