Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed May 1, 2024
1 parent 555f7c1 commit 836cc18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/smart-account/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ func (k Keeper) SetParams(ctx sdk.Context, params types.Params) {
k.paramSpace.SetParamSet(ctx, &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 {
isSmartAccountActiveBz := k.paramSpace.GetRaw(ctx, types.KeyIsSmartAccountActive)
if !bytes.Equal(isSmartAccountActiveBz, k.isSmartAccountActiveBz) {
Expand Down

0 comments on commit 836cc18

Please sign in to comment.