Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Mar 19, 2024
1 parent 8a18b1a commit 1657932
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions x/ecocredit/genesis/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ func ValidateGenesis(data json.RawMessage) error {
if _, exists := batchIDToPrecision[batch.Key]; exists {
continue
}

class, err := ss.ClassTable().Get(ormCtx, batch.ClassKey)
if err != nil {
return err
}

batchIDToPrecision[batch.Key] = abbrevToPrecision[class.CreditTypeAbbrev]
}

batchIDToCalSupply := make(map[uint64]math.Dec) // map of batchID to calculated supply
Expand Down

0 comments on commit 1657932

Please sign in to comment.