Compare commits

...
2 Commits
Author SHA1 Message Date
Chris Troutner 9463afcbc3 Merge pull request #135 from Permissionless-Software-Foundation/ct-unstable
fix(send tx): Fixing bug in the sendTxOptions()
2021-05-13 10:25:15 -07:00
Chris Troutner 13a1e1b1db fix(send tx): Fixing bug in the sendTxOptions() 2021-05-13 10:23:01 -07:00
+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