mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
fix(send tx): Fixing bug in the sendTxOptions()
This commit is contained in:
@@ -568,11 +568,14 @@ class RawTransactions {
|
||||
// accidental double spends can be reduced.
|
||||
sendTxOptions (options) {
|
||||
try {
|
||||
if (process.env.RPC_SENDURL) {
|
||||
console.log(`original options: ${JSON.stringify(options, null, 2)}`)
|
||||
const sendUrl = process.env.RPC_SENDURL
|
||||
|
||||
if (sendUrl !== 'undefined' && sendUrl !== undefined) {
|
||||
// console.log(`original options: ${JSON.stringify(options, null, 2)}`)
|
||||
|
||||
options.baseURL = process.env.RPC_SENDURL
|
||||
|
||||
console.log(`modified options: ${JSON.stringify(options, null, 2)}`)
|
||||
// console.log(`modified options: ${JSON.stringify(options, null, 2)}`)
|
||||
}
|
||||
|
||||
return options
|
||||
|
||||
Reference in New Issue
Block a user