Skip to content

Commit

Permalink
update check stateless ICAAccount (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanhNhann authored Oct 23, 2023
1 parent 07545d7 commit 8198456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/interchainstaking/types/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (a *ICAAccount) IncrementBalanceWaitgroup() {
}

func (a *ICAAccount) DecrementBalanceWaitgroup() error {
if a.BalanceWaitgroup <= 0 {
if a.BalanceWaitgroup == 0 {
return errors.New("unable to decrement the balance waitgroup below 0")
}
a.BalanceWaitgroup--
Expand Down

0 comments on commit 8198456

Please sign in to comment.