Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused error from fee calculator creation #3245

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

StephenButtolph
Copy link
Contributor

@StephenButtolph StephenButtolph commented Jul 29, 2024

Why this should be merged

This function doesn't currently (and doesn't seem like it will need to in the future) return any errors.

How this works

Deletes code.

How this was tested

  • CI

@StephenButtolph StephenButtolph self-assigned this Jul 29, 2024
@StephenButtolph StephenButtolph added the cleanup Code quality improvement label Jul 29, 2024
@StephenButtolph StephenButtolph added this to the v1.11.11 milestone Jul 29, 2024
Comment on lines +78 to 81
func PickFeeCalculator(cfg *config.Config, state Chain) fee.Calculator {
timestamp := state.GetTimestamp()
return fee.NewStaticCalculator(cfg.StaticFeeConfig, cfg.UpgradeConfig, timestamp), nil
return fee.NewStaticCalculator(cfg.StaticFeeConfig, cfg.UpgradeConfig, timestamp)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual change

@StephenButtolph StephenButtolph added this pull request to the merge queue Jul 29, 2024
Merged via the queue into master with commit e5885ff Jul 29, 2024
20 checks passed
@StephenButtolph StephenButtolph deleted the remove-unused-error branch July 29, 2024 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acp103 cleanup Code quality improvement
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants