From ed25f88a13ce6ffdd578252eeb6d94b177b0ec2b Mon Sep 17 00:00:00 2001 From: Hyde Zhang Date: Tue, 27 Aug 2024 19:04:40 +0100 Subject: [PATCH] refactor: unnecessary error return of NewSigningOptions function (#21424) --- x/auth/tx/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/auth/tx/config.go b/x/auth/tx/config.go index bd9811a76c55..24cec22034cd 100644 --- a/x/auth/tx/config.go +++ b/x/auth/tx/config.go @@ -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.