Renaming 'origin' to 'ip'

This commit is contained in:
Chris Troutner
2021-02-24 15:12:40 -08:00
parent fb1bb0b7ed
commit 236637f0e0
+2 -2
View File
@@ -1980,7 +1980,7 @@ class Slp {
const utxos = req.body.utxos
console.log(`req._remoteAddress: ${req._remoteAddress}`)
const origin = req._remoteAddress
const ip = req._remoteAddress
// Validate inputs
if (!Array.isArray(utxos)) {
@@ -2016,7 +2016,7 @@ class Slp {
const theseUtxos = utxos[i].utxos
// Get SLP token details.
const details = await _this.bchjs.SLP.Utils.tokenUtxoDetails(theseUtxos, origin)
const details = await _this.bchjs.SLP.Utils.tokenUtxoDetails(theseUtxos, ip)
// console.log('details: ', details)
// Replace the original UTXO data with the hydrated data.