docs: Update account.go comments (#18177)

This commit is contained in:
Danny 2023-10-19 12:18:27 -04:00 committed by GitHub
parent 4121869cb7
commit 67fbfcd14b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -142,7 +142,7 @@ func (acc BaseAccount) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error {
return unpacker.UnpackAny(acc.PubKey, &pubKey)
}
// NewModuleAddressOrAddress gets an input string and returns an AccAddress.
// NewModuleAddressOrBech32Address gets an input string and returns an AccAddress.
// If the input is a valid address, it returns the address.
// If the input is a module name, it returns the module address.
func NewModuleAddressOrBech32Address(input string) sdk.AccAddress {