From d041ba7890ebb02211c693c00ec27c84b63bd3c9 Mon Sep 17 00:00:00 2001 From: Luca Ambrosini Date: Thu, 27 Feb 2020 12:14:49 +0100 Subject: [PATCH] Compute the change address according to the network --- examples/applications/wallet/send-bch/send-bch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/applications/wallet/send-bch/send-bch.js b/examples/applications/wallet/send-bch/send-bch.js index 906620f0..020860be 100644 --- a/examples/applications/wallet/send-bch/send-bch.js +++ b/examples/applications/wallet/send-bch/send-bch.js @@ -88,7 +88,7 @@ async function sendBch() { transactionBuilder.addOutput(SEND_ADDR, remainder) // Generate a change address from a Mnemonic of a private key. - const change = changeAddrFromMnemonic(SEND_MNEMONIC) + const change = changeAddrFromMnemonic(SEND_MNEMONIC,NETWORK) // Generate a keypair from the change address. const keyPair = bitbox.HDNode.toKeyPair(change)