From 431940ecfc6c8111d7f662ffd7d312e6885a793c Mon Sep 17 00:00:00 2001 From: Artem Date: Fri, 18 Oct 2024 17:28:26 +0300 Subject: [PATCH] Fix: generic constants --- pkg/indexer/genesis/constant.go | 6 +++--- pkg/node/types/genesis.go | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pkg/indexer/genesis/constant.go b/pkg/indexer/genesis/constant.go index 59459eb..49abd95 100644 --- a/pkg/indexer/genesis/constant.go +++ b/pkg/indexer/genesis/constant.go @@ -110,12 +110,12 @@ func (module *Module) parseConstants(appState nodeTypes.AppState, consensus pkgT data.constants = append(data.constants, storage.Constant{ Module: storageTypes.ModuleNameGeneric, Name: "rollup_data_submission_base", - Value: appState.Fees.Sequence.Base.String(), + Value: appState.Fees.RollupDataSubmission.Base.String(), }) data.constants = append(data.constants, storage.Constant{ Module: storageTypes.ModuleNameGeneric, - Name: "rollup_data_submission_computed_multiplier", - Value: appState.Fees.Sequence.Multiplier.String(), + Name: "rollup_data_submission_multiplier", + Value: appState.Fees.RollupDataSubmission.Multiplier.String(), }) data.constants = append(data.constants, storage.Constant{ diff --git a/pkg/node/types/genesis.go b/pkg/node/types/genesis.go index 31bac86..1f1c418 100644 --- a/pkg/node/types/genesis.go +++ b/pkg/node/types/genesis.go @@ -52,13 +52,13 @@ type Prefixes struct { } type Fees struct { - Transfer Fee `json:"transfer"` - Sequence Fee `json:"sequence"` - Ics20Withdrawal Fee `json:"ics20_withdrawal"` - InitBridgeAccount Fee `json:"init_bridge_account"` - BridgeLock Fee `json:"bridge_lock"` - BridgeUnlock Fee `json:"bridge_unlock"` - BridgeSudoChange Fee `json:"bridge_sudo_change"` + Transfer Fee `json:"transfer"` + RollupDataSubmission Fee `json:"rollup_data_submission"` + Ics20Withdrawal Fee `json:"ics20_withdrawal"` + InitBridgeAccount Fee `json:"init_bridge_account"` + BridgeLock Fee `json:"bridge_lock"` + BridgeUnlock Fee `json:"bridge_unlock"` + BridgeSudoChange Fee `json:"bridge_sudo_change"` IbcRelay Fee `json:"ibc_relay"` ValidatorUpdate Fee `json:"validator_update"`