Skip to content

Commit 2e0e84b

Browse files
committed
fix(attestations): do not cast tokenId to string
- it results in scientific notation which makes it unparseable as BigInt
1 parent 419b530 commit 2e0e84b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/services/database/entities/AttestationEntityService.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,7 @@ export class AttestationService {
116116
"token_id" in data &&
117117
data.token_id
118118
) {
119-
const tokenId =
120-
typeof data.token_id === "string"
121-
? data.token_id
122-
: String(data.token_id);
119+
const tokenId = Number(data.token_id);
123120
return { ...data, token_id: BigInt(tokenId).toString() };
124121
}
125122
return data;

0 commit comments

Comments
 (0)