Minor fixes based on feedback

This commit is contained in:
Valtteri Karesto
2022-05-25 13:39:52 +03:00
parent 56203ce9c6
commit 9a6ef2c393
3 changed files with 25 additions and 21 deletions

View File

@@ -3,7 +3,6 @@ import state, { IAccount } from "../state"
const estimateFee = async (tx: Record<string, unknown>, account: IAccount): Promise<null | { base_fee: string, median_fee: string; minimum_fee: string; open_ledger_fee: string; }> => {
const copyTx = JSON.parse(JSON.stringify(tx))
console.log(tx)
delete copyTx['SigningPubKey']
if (!copyTx.Fee) {
copyTx.Fee = '1000'