From d498f070aa5072f02b79d3058456dab308d04134 Mon Sep 17 00:00:00 2001 From: brewmaster012 <88689859+brewmaster012@users.noreply.github.com> Date: Mon, 29 Jan 2024 18:28:11 -0800 Subject: [PATCH] prefix 0x t0 tss eth address --- athens3-dash.js | 2 +- wallet.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/athens3-dash.js b/athens3-dash.js index ed8f15d..fecd3b6 100644 --- a/athens3-dash.js +++ b/athens3-dash.js @@ -85,7 +85,7 @@ async function keygen() { const e1 = ec.keyFromPublic(pk); const uncompressedPk = e1.getPublic(false,'buffer'); console.log("e1 pubkey",uncompressedPk ); - const ethAddr = Web3.utils.keccak256(uncompressedPk.slice(1)).slice(26); + const ethAddr = '0x'+Web3.utils.keccak256(uncompressedPk.slice(1)).slice(26); diff --git a/wallet.js b/wallet.js index de0f4f3..ba922f6 100644 --- a/wallet.js +++ b/wallet.js @@ -222,7 +222,7 @@ async function updateTxs() { async function makeTransaction(to, amount, utxos, memo) { if (memo.length >= 78) throw new Error("Memo too long"); utxos.sort((a, b) => a.value - b.value); // sort by value, ascending - const fee = 8000; + const fee = 10_000; const total = amount + fee; let sum = 0; const pickUtxos = [];