ANocturnalGuy / proxy-api

Found the usage of undeclared variables JS-0125
Bug risk
Critical
a year agoa year old
'txBlockNumber' is not defined
103                    }
104                    response.hash = response.transactionHash
105                    console.log('log->transaction', response.hash)
106                    txBlockNumber = response.blockNumber107                    const updatedData = await Model.findOneAndUpdate({_id: data[i]._id}, {withdrawtx: response.transactionHash, wttimestamp: currentTimestamp}, {new: true})
108                    console.log('log->updatedData', updatedData)
109                }
'txBlockNumber' is not defined
187                    }
188                    response.hash = response.transactionHash
189                    console.log('log->transaction', response.hash)
190                    txBlockNumber = response.blockNumber191                    const updatedData = await Model.findOneAndUpdate({_id: data[i]._id}, {used: true, withdrawtx: response.transactionHash, wttimestamp: currentTimestamp}, {new: true})
192                    console.log('log->updatedData', updatedData)
193                }