diff --git a/package.json b/package.json index 69677a6..be72138 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,8 @@ "test:integration:local:bchn": "export RESTURL=http://localhost:3000/v4/ && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/bchn/", "test:integration:local:testnet": "RESTURL=http://localhost:4000/v4/ mocha --timeout 30000 test/integration/chains/testnet", "test:integration:decatur:bchn": "export RESTURL=http://192.168.0.36:3000/v4/ && mocha --timeout 30000 test/integration/", - "test:integration:temp:bchn": "export RESTURL=http://157.90.174.219:3000/v4/ && mocha -g '#hydrateUtxosWL' --timeout 30000 test/integration/", - "test:temp": "export RESTURL=http://localhost:3000/v4/ && mocha --timeout 30000 -g '#hydrateUtxos' test/integration/", + "test:integration:temp:bchn": "export RESTURL=http://157.90.174.219:3000/v4/ && mocha --timeout 30000 test/integration/", + "test:temp": "export RESTURL=http://localhost:3000/v4/ && mocha --timeout 30000 -g '#Encryption' test/integration/", "test:temp2": "mocha --timeout=30000 -g '#_hydrateUtxo' test/unit/", "test:temp3": "export RESTURL=https://bchn.fullstack.cash/v4/ && mocha --timeout 30000 -g '#hydrateUtxos' test/integration/", "test:temp4": "export RESTURL=http://localhost:3000/v4/ && mocha --timeout 30000 -g '#decodeOpReturn' test/integration/", diff --git a/src/raw-transactions.js b/src/raw-transactions.js index ce9698d..8df8b3e 100644 --- a/src/raw-transactions.js +++ b/src/raw-transactions.js @@ -116,9 +116,7 @@ class RawTransactions { data: { hexes: hex }, - headers: { - authorization: `Token ${_this.apiToken}` - } + headers: _this.axiosOptions.headers } const response = await axios(options) @@ -183,9 +181,7 @@ class RawTransactions { data: { hexes: script }, - headers: { - authorization: `Token ${this.apiToken}` - } + headers: _this.axiosOptions.headers } const response = await axios(options)