Skip to content

Commit 1df216f

Browse files
Revert "Save gas on IsFeeEnabled (backport #2786) (#2814)" (#3660)
* Revert "Save gas on IsFeeEnabled (backport #2786) (#2814)" This reverts commit dd2c03e. * remove additional change in changelog entry * update CHANGELOG * Update CHANGELOG.md --------- Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
1 parent c4a4bfd commit 1df216f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ Ref: https://keepachangelog.com/en/1.0.0/
3434

3535
# Changelog
3636

37+
## [[Unreleased]]
38+
39+
### Bug Fixes
40+
41+
* [\#3660](https://github.com/cosmos/ibc-go/pull/3660) Revert state-machine breaking improvement from PR [#2786](https://github.com/cosmos/ibc-go/pull/2786).
42+
3743
## [v4.1.2](https://github.com/cosmos/ibc-go/releases/tag/v4.1.2) - 2023-05-25
3844

3945
### Dependencies

modules/apps/29-fee/keeper/keeper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (k Keeper) DeleteFeeEnabled(ctx sdk.Context, portID, channelID string) {
121121
// fee enabled flag for the given port and channel identifiers
122122
func (k Keeper) IsFeeEnabled(ctx sdk.Context, portID, channelID string) bool {
123123
store := ctx.KVStore(k.storeKey)
124-
return store.Has(types.KeyFeeEnabled(portID, channelID))
124+
return store.Get(types.KeyFeeEnabled(portID, channelID)) != nil
125125
}
126126

127127
// GetAllFeeEnabledChannels returns a list of all ics29 enabled channels containing portID & channelID that are stored in state

0 commit comments

Comments
 (0)