diff --git a/package.json b/package.json index 9c5e9f5..b0fab3b 100644 --- a/package.json +++ b/package.json @@ -13,12 +13,8 @@ "test": "c8 mocha --trace-warnings --unhandled-rejections=strict --timeout 30000 test/unit/", "test:integration": "npm run test:integration:bchn", "test:integration:nft": "export RESTURL=https://bchn.fullstack.cash/v6/ && export IS_USING_FREE_TIER=true && mocha --timeout 30000 -g '#nft1' test/integration/chains/bchn/slp.js", - "test:integration:abc": "export RESTURL=https://abc.fullstack.cash/v6/ && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/abc/", "test:integration:bchn": "export RESTURL=https://bchn.fullstack.cash/v6/ && export IS_USING_FREE_TIER=true && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/bchn/", - "test:integration:bchn:slpdb": "export TESTSLP=1 && export RESTURL=https://bchn.fullstack.cash/v6/ && export IS_USING_FREE_TIER=true && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/bchn/", - "test:integration:local:abc": "export RESTURL=http://localhost:5942/v6/ && mocha --timeout 30000 test/integration && mocha --timeout 30000 test/integration/chains/abc/", "test:integration:local:bchn": "export RESTURL=http://localhost:5942/v6/ && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/bchn/", - "test:integration:local:testnet": "RESTURL=http://localhost:5942/v6/ mocha --timeout 30000 test/integration/chains/testnet", "test:integration:decatur:bchn": "export RESTURL=http://192.168.2.127:5942/v6/ && mocha --timeout 30000 test/integration/ && mocha --timeout 30000 test/integration/chains/bchn/", "test:integration:decatur:abc": "export RESTURL=http://192.168.2.142:5942/v6/ && mocha --timeout 30000 test/integration && mocha --timeout 30000 test/integration/chains/abc/", "test:integration:temp:bchn": "export RESTURL=http://157.90.174.219:5942/v6/ && mocha --timeout 30000 test/integration/", diff --git a/src/dsproof.js b/src/dsproof.js index 2be305f..c22bbfb 100644 --- a/src/dsproof.js +++ b/src/dsproof.js @@ -67,7 +67,7 @@ class DSProof { throw new Error(`txid must be of length 64 (not ${txid.length})`) } const response = await _this.axios.get( - `${this.restURL}dsproof/getdsproof/${txid}`, + `${this.restURL}full-node/dsproof/getdsproof/${txid}`, this.axiosOptions ) return response.data diff --git a/test/integration/chains/bchn/dsproof.js b/test/integration/chains/bchn/dsproof.js index 63a4a3f..c4f6f46 100644 --- a/test/integration/chains/bchn/dsproof.js +++ b/test/integration/chains/bchn/dsproof.js @@ -2,10 +2,13 @@ Integration tests for bchjs dsproof library. */ +// Global npm libraries import chai from 'chai' +// Local libraries import BCHJS from '../../../../src/bch-js.js' const { assert } = chai + const bchjs = new BCHJS() describe('#DSProof', () => {