Skip to content

Commit

Permalink
Merge pull request #226 from dojoengine/format-recs
Browse files Browse the repository at this point in the history
fix: make bigints bigints in recs
  • Loading branch information
ponderingdemocritus authored Jun 27, 2024
2 parents 802f0b2 + 581644b commit d639de3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/state/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export function convertValues(schema: Schema, values: any) {

case RecsType.String:
case RecsType.BigInt:
acc[key] = BigInt(value.value);
break;

case RecsType.Boolean:
case RecsType.Number:
acc[key] = value.value;
Expand Down

0 comments on commit d639de3

Please sign in to comment.