Got x402 integration tests working

This commit is contained in:
Chris Troutner
2025-11-25 13:27:13 -08:00
parent 07de91afa2
commit 26a6175889
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -78,8 +78,8 @@ class BCHJS {
} else if (process.env.BCHJSWIF && process.env.BCHJSWIF !== '') {
this.wif = process.env.BCHJSWIF
}
this.paymentAmountSats = (config && config.paymentAmountSats) || 2000
this.bchServerURL = (config && config.bchServerURL) || 'http://free-bch.fullstack.cash'
this.paymentAmountSats = (config && config.paymentAmountSats) || 2000 * 10
this.bchServerURL = (config && config.bchServerURL) || 'https://free-bch.fullstack.cash'
const libConfig = {
restURL: this.restURL,
+2 -2
View File
@@ -19,7 +19,7 @@ describe('#X402 Integration', () => {
assert.strictEqual(bchjs.wif, '')
assert.strictEqual(bchjs.paymentAmountSats, 2000)
assert.strictEqual(bchjs.bchServerURL, 'http://free-bch.fullstack.cash')
assert.strictEqual(bchjs.bchServerURL, 'https://free-bch.fullstack.cash')
})
it('should accept wif in config', () => {
@@ -55,7 +55,7 @@ describe('#X402 Integration', () => {
assert.strictEqual(bchjs.wif, '')
assert.strictEqual(bchjs.paymentAmountSats, 2000)
assert.strictEqual(bchjs.bchServerURL, 'http://free-bch.fullstack.cash')
assert.strictEqual(bchjs.bchServerURL, 'https://free-bch.fullstack.cash')
})
it('should read WIF from BCHJSWIF environment variable', () => {