mirror of
https://github.com/Permissionless-Software-Foundation/bch-js.git
synced 2026-09-21 16:51:59 -07:00
fix(util.js): Fixing small bug with Util.validateAddress()
This commit is contained in:
@@ -4,6 +4,7 @@ wallet-info.txt
|
|||||||
wallet.json
|
wallet.json
|
||||||
integration-test-sweet.sh
|
integration-test-sweet.sh
|
||||||
integration-test-ss.sh
|
integration-test-ss.sh
|
||||||
|
integration-test-bitfinex.sh
|
||||||
|
|
||||||
docs/
|
docs/
|
||||||
coverage/
|
coverage/
|
||||||
|
|||||||
+5
-4
@@ -281,16 +281,17 @@ class Util {
|
|||||||
|
|
||||||
// Array of blocks.
|
// Array of blocks.
|
||||||
} else if (Array.isArray(address)) {
|
} else if (Array.isArray(address)) {
|
||||||
const options = {
|
const options1 = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: `${this.restURL}util/validateAddress`,
|
url: `${this.restURL}util/validateAddress`,
|
||||||
data: {
|
data: {
|
||||||
addresses: address
|
addresses: address
|
||||||
},
|
|
||||||
headers: {
|
|
||||||
authorization: `Token ${this.apiToken}`
|
|
||||||
}
|
}
|
||||||
|
// headers: {
|
||||||
|
// authorization: `Token ${this.apiToken}`
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
const options = Object.assign({}, options1, this.axiosOptions)
|
||||||
const response = await axios(options)
|
const response = await axios(options)
|
||||||
|
|
||||||
return response.data
|
return response.data
|
||||||
|
|||||||
Reference in New Issue
Block a user