From 30d9a78601954ba6f4b0291417fbd3d9712b24c5 Mon Sep 17 00:00:00 2001 From: Anunay Date: Sat, 2 Oct 2021 17:23:39 +0530 Subject: [PATCH] replaced addOutpoint with addCoin with reference to handshake-org/hsd#639 --- app/background/wallet/bulk-renewal.js | 2 +- app/background/wallet/bulk-transfer.js | 4 ++-- app/background/wallet/create-register-all.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/background/wallet/bulk-renewal.js b/app/background/wallet/bulk-renewal.js index 65ae62fed..c60f9ebe6 100644 --- a/app/background/wallet/bulk-renewal.js +++ b/app/background/wallet/bulk-renewal.js @@ -67,7 +67,7 @@ export const createRenewMany = async (wallet, names) => { output.covenant.pushU32(ns.height); output.covenant.pushHash(await wallet.wdb.getRenewalBlock()); - mtx.addOutpoint(ns.owner); + mtx.addCoin(coin); mtx.outputs.push(output); } diff --git a/app/background/wallet/bulk-transfer.js b/app/background/wallet/bulk-transfer.js index cae856d77..9a86e4d87 100644 --- a/app/background/wallet/bulk-transfer.js +++ b/app/background/wallet/bulk-transfer.js @@ -60,7 +60,7 @@ export const createTransferMany = async (wallet, names, recipientAddress) => { output.covenant.pushU8(address.version); output.covenant.push(address.hash); - mtx.addOutpoint(ns.owner); + mtx.addCoin(coin); mtx.outputs.push(output); } @@ -132,7 +132,7 @@ export const createFinalizeMany = async (wallet, names) => { output.covenant.pushU32(ns.renewals); output.covenant.pushHash(await wallet.wdb.getRenewalBlock()); - mtx.addOutpoint(ns.owner); + mtx.addCoin(coin); mtx.outputs.push(output); } diff --git a/app/background/wallet/create-register-all.js b/app/background/wallet/create-register-all.js index 6d9ce557a..f9637e141 100644 --- a/app/background/wallet/create-register-all.js +++ b/app/background/wallet/create-register-all.js @@ -53,7 +53,7 @@ export default async function createRegisterAll(wallet) { output.covenant.push(EMPTY); output.covenant.pushHash(await wallet.wdb.getRenewalBlock()); - mtx.addOutpoint(ns.owner); + mtx.addCoin(coin); mtx.outputs.push(output); } }