From 95a9332ad17aee0889c78c53890d74b19fa6054c Mon Sep 17 00:00:00 2001 From: adjoly Date: Wed, 30 Jul 2025 16:22:36 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20fixed?= =?UTF-8?q?=20txHash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/scoreStore/addTx.js | 2 +- src/api/scoreStore/getTx.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/scoreStore/addTx.js b/src/api/scoreStore/addTx.js index ab9ae96..b078e45 100644 --- a/src/api/scoreStore/addTx.js +++ b/src/api/scoreStore/addTx.js @@ -18,7 +18,7 @@ export async function addTx(request, reply, fastify) { }); return reply.code(200).send({ - id: id + id: Number(id) }); } catch (err) { fastify.log.error(err); diff --git a/src/api/scoreStore/getTx.js b/src/api/scoreStore/getTx.js index f932a0a..fd8c611 100644 --- a/src/api/scoreStore/getTx.js +++ b/src/api/scoreStore/getTx.js @@ -22,7 +22,7 @@ export async function getTx(request, reply, fastify) { p1Score: Number(score.p1Score), p2Score: Number(score.p2Score) }, - tx: tx + tx: tx?.txHash ?? null }); } catch (err) { fastify.log.error(err);