This repository was archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
"this.recoveryTx.enableBitcoinCash is not a function" #40
Copy link
Copy link
Open
Description
Hi,
Running this command into the command line (after loging in successfully)
bitgo util recoverbchfrombtc
I am being asked three questions:
- Please enter the wallet ID of the BTC wallet that received the funds:
- Please enter the transaction ID of your faulty transaction:
- Please enter the address you wish to recover your BCH to:
To which I answer with my personal data,
then I get this backtrack error:
this.recoveryTx.enableBitcoinCash is not a function
TypeError: this.recoveryTx.enableBitcoinCash is not a function
at CrossChainRecoveryTool._setCoinInstances (/usr/local/lib/node_modules/bitgo-cli/src/recovery.js:79:21)
at new CrossChainRecoveryTool (/usr/local/lib/node_modules/bitgo-cli/src/recovery.js:35:8)
at BGCL.<anonymous> (/usr/local/lib/node_modules/bitgo-cli/src/bgcl.js:3178:24)
at Generator.next (<anonymous>)
at Generator.tryCatcher (/usr/local/lib/node_modules/bitgo-cli/node_modules/bluebird/js/release/util.js:16:23)
at PromiseSpawn._promiseFulfilled (/usr/local/lib/node_modules/bitgo-cli/node_modules/bluebird/js/release/generators.js:97:49)
at Promise._settlePromise (/usr/local/lib/node_modules/bitgo-cli/node_modules/bluebird/js/release/promise.js:579:26)
at Promise._settlePromise0 (/usr/local/lib/node_modules/bitgo-cli/node_modules/bluebird/js/release/promise.js:619:10)
at Promise._settlePromises (/usr/local/lib/node_modules/bitgo-cli/node_modules/bluebird/js/release/promise.js:699:18)
at _drainQueueStep (/usr/local/lib/node_modules/bitgo-cli/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/usr/local/lib/node_modules/bitgo-cli/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/usr/local/lib/node_modules/bitgo-cli/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/usr/local/lib/node_modules/bitgo-cli/node_modules/bluebird/js/release/async.js:17:14)
at processImmediate (internal/timers.js:461:21)
I took a quick look at the source, and from the file /usr/local/lib/node_modules/bitgo-cli/src/recovery.js:
this.recoveryTx = new bitcoin.TransactionBuilder(network);
if (sourceCoin === 'bch') {
this.recoveryTx.enableBitcoinCash(true);
this.recoveryTx.setVersion(2);
}
The problem seems to be that the function enableBitcoinCash() is nowhere to be found (I grep over the whole source code).
Am I missing something here?
Thank you very much.
Metadata
Metadata
Assignees
Labels
No labels