Skip to content

Commit

Permalink
Use input as data field when signing
Browse files Browse the repository at this point in the history
  • Loading branch information
Inkvi committed Jun 25, 2024
1 parent cdd2fa8 commit bd9c737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ 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 () => {
try {
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);
Expand Down

0 comments on commit bd9c737

Please sign in to comment.