Skip to content

Commit

Permalink
fix(app): issue with bigint in attestation response (#3085)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucianHymer committed Nov 27, 2024
1 parent d764b13 commit 18d3de4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iam/src/utils/scrollDevBadge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
} from "@ethereum-attestation-service/eas-sdk";
import { errorRes } from "./helpers.js";
import { ATTESTER_TYPES, getAttestationDomainSeparator, getAttestationSignerForChain } from "./attestations.js";
import { toJsonObject } from "./json";

const BADGE_CONTRACT_ABI = [
{
Expand Down Expand Up @@ -243,7 +244,7 @@ export const scrollDevBadgeHandler = (req: Request, res: Response): Promise<void
invalidCredentials,
};

return void res.json(payload);
return void res.json(toJsonObject(payload));
})
.catch((e) => {
console.log("Error signing badge request", { e });
Expand Down

0 comments on commit 18d3de4

Please sign in to comment.