Merge pull request #135 from Permissionless-Software-Foundation/ct-unstable

fix(send tx): Fixing bug in the sendTxOptions()
This commit is contained in:
Chris Troutner
2021-05-13 10:25:15 -07:00
committed by GitHub
+6 -3
View File
@@ -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