From bd9c737a823f9084d7ac00e31ec75b4dd021cdc2 Mon Sep 17 00:00:00 2001 From: Inkvi Date: Mon, 24 Jun 2024 18:02:44 -0700 Subject: [PATCH] Use input as data field when signing --- src/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.ts b/src/server.ts index 48df2db..702d074 100644 --- a/src/server.ts +++ b/src/server.ts @@ -67,7 +67,7 @@ async function handleEthSignTransaction(transactionArgs: TransactionArgs) { transactionArgs.type = '0x0'; } } - return await kmsSigner.signTransaction({keyId: keyId}, transactionArgs) + return await kmsSigner.signTransaction({keyId: keyId}, {...transactionArgs, data: transactionArgs.input}) } const start = async () => { @@ -75,7 +75,7 @@ const start = async () => { let port = parseInt(process.env.PORT ?? "8000"); const host = process.env.HOST ?? "0.0.0.0"; await app.listen({port, host}); - console.log(`Server running at https://localhost:${port}/`); + console.log(`Server running at http://localhost:${port}/`); } catch (err) { console.error(err); process.exit(1);