Description
Following the plugin type rename from 'fees' to 'fee' in PR #117, several hardcoded references to the old plugin type remain in the codebase and need to be updated for consistency.
Files and Changes Required
Based on CodeRabbit's analysis, the following files need updates:
plugin/fees/config.go
- Change
"type": "fees" → "type": "fee"
- Change
v.SetEnvPrefix("FEES") → v.SetEnvPrefix("FEE")
plugin/fees/fees.go
- Change
logger.WithField("plugin", "fees") → logger.WithField("plugin", PLUGIN_TYPE)
scripts/dev/create_fee_policy/main.go
- Update
PluginID: vtypes.PluginVultisigFees_feee, to use the new vtypes constant reflecting the "fee" plugin
plugin/fees/policy.go & plugin/fees/fees.go
- Replace references to
vtypes.PluginVultisigFees_feee with the correctly renamed vtypes constant (e.g., vtypes.PluginVultisigFee_fee)
Context
This consistency exercise ensures that all references to the plugin type are aligned with the rename performed in PR #117 where PLUGIN_TYPE was changed from "fees" to "fee" in plugin/fees/constraints.go.
References
Description
Following the plugin type rename from 'fees' to 'fee' in PR #117, several hardcoded references to the old plugin type remain in the codebase and need to be updated for consistency.
Files and Changes Required
Based on CodeRabbit's analysis, the following files need updates:
plugin/fees/config.go
"type": "fees"→"type": "fee"v.SetEnvPrefix("FEES")→v.SetEnvPrefix("FEE")plugin/fees/fees.go
logger.WithField("plugin", "fees")→logger.WithField("plugin", PLUGIN_TYPE)scripts/dev/create_fee_policy/main.go
PluginID: vtypes.PluginVultisigFees_feee,to use the new vtypes constant reflecting the "fee" pluginplugin/fees/policy.go & plugin/fees/fees.go
vtypes.PluginVultisigFees_feeewith the correctly renamed vtypes constant (e.g.,vtypes.PluginVultisigFee_fee)Context
This consistency exercise ensures that all references to the plugin type are aligned with the rename performed in PR #117 where
PLUGIN_TYPEwas changed from "fees" to "fee" inplugin/fees/constraints.go.References