mirror of
https://github.com/status-im/autobounty.git
synced 2025-01-12 14:55:09 +00:00
Fixed address string length
This commit is contained in:
parent
d49e372fbd
commit
e69d267cba
@ -51,7 +51,8 @@ function hasAddress (req) {
|
|||||||
|
|
||||||
function getAddress (req) {
|
function getAddress (req) {
|
||||||
const commentBody = req.body.comment.body
|
const commentBody = req.body.comment.body
|
||||||
const index = commentBody.search(contractAddressString) + contractAddressString.length
|
const index = commentBody.search(contractAddressString) + contractAddressString.length + 1
|
||||||
|
console.log("address: ", commentBody.substring(index, index + 42))
|
||||||
return commentBody.substring(index, index + 42)
|
return commentBody.substring(index, index + 42)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user