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);