Skip to content

Commit

Permalink
fix: panic on assertion fail
Browse files Browse the repository at this point in the history
  • Loading branch information
kjessec committed May 27, 2022
1 parent ca57f51 commit 2565577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/export/util/export_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,6 @@ func CachedMap3(f func(*terra.TerraApp) (map[string]map[string]map[string]sdk.In
func AssertZeroSupply(snapshot SnapshotBalanceAggregateMap, denom string) {
s := Sum(snapshot.FilterByDenom(denom))
if !s.IsZero() {
fmt.Println(fmt.Errorf("total supply invariant: denom %s exsists: %s", denom, s.String()))
panic(fmt.Errorf("total supply invariant: denom %s exsists: %s", denom, s.String()))
}
}

0 comments on commit 2565577

Please sign in to comment.