Skip to content

Commit

Permalink
use pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed May 1, 2024
1 parent 7893ab4 commit 12f205a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/smart-account/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (k Keeper) SetParams(ctx sdk.Context, params types.Params) {
// GetIsSmartAccountActive returns the value of the isSmartAccountActive parameter.
// If the value has not been set, it will return false.
// If there is an error unmarshalling the value, it will return false.
func (k Keeper) GetIsSmartAccountActive(ctx sdk.Context) bool {
func (k *Keeper) GetIsSmartAccountActive(ctx sdk.Context) bool {
isSmartAccountActiveBz := k.paramSpace.GetRaw(ctx, types.KeyIsSmartAccountActive)
if !bytes.Equal(isSmartAccountActiveBz, k.isSmartAccountActiveBz) {
var isSmartAccountActiveValue bool
Expand Down

0 comments on commit 12f205a

Please sign in to comment.