Skip to content

Commit

Permalink
Merge branch 'passport-integration' into upgradable-contract-first
Browse files Browse the repository at this point in the history
  • Loading branch information
kamikazebr committed Jun 19, 2024
2 parents 0c5cdce + f375ff2 commit 1f8901e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/web/app/api/passport-oracle/writeScore/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ export async function POST(req: Request) {
abi: passportScorerABI,
address: CONTRACT_ADDRESS,
functionName: "addUserScore" as const,
args: [user, BigInt(score)] as const,
args: [
user,
{ score: BigInt(score), lastUpdated: BigInt(Date.now()) },
] as const,
};

const hash = await walletClient.writeContract(data);
Expand Down

0 comments on commit 1f8901e

Please sign in to comment.