Skip to content

Commit

Permalink
x/interchainstaking/keeper: use .IncrementBalanceWaitgroup() instead …
Browse files Browse the repository at this point in the history
…of naked ++

Instead of using a naked increment for an exported struct, this change
uses its .IncrementBalanceWaitgroup() which helps in logical checks.

Fixes #98
  • Loading branch information
odeke-em authored and Joe Bowman committed Jan 6, 2023
1 parent 94d52b6 commit 9d4a641
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/interchainstaking/keeper/zones.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func (k Keeper) SetAccountBalance(ctx sdk.Context, zone types.Zone, address stri
"accountbalance",
0,
)
icaAccount.BalanceWaitgroup++
icaAccount.IncrementBalanceWaitgroup()

}
}
Expand All @@ -314,7 +314,7 @@ func (k Keeper) SetAccountBalance(ctx sdk.Context, zone types.Zone, address stri
"accountbalance",
0,
)
icaAccount.BalanceWaitgroup++
icaAccount.IncrementBalanceWaitgroup()
}

k.SetZone(ctx, &zone)
Expand Down

0 comments on commit 9d4a641

Please sign in to comment.