Merge pull request #283 from Permissionless-Software-Foundation/ct-unstable

fix(x402): Removing leading slash in payment URL
This commit is contained in:
Chris Troutner
2025-12-29 17:08:41 -07:00
committed by GitHub
3 changed files with 10 additions and 10 deletions
+6 -6
View File
@@ -4298,9 +4298,9 @@
} }
}, },
"node_modules/caniuse-lite": { "node_modules/caniuse-lite": {
"version": "1.0.30001761", "version": "1.0.30001762",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001761.tgz", "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001762.tgz",
"integrity": "sha512-JF9ptu1vP2coz98+5051jZ4PwQgd2ni8A+gYSN7EA7dPKIMf0pDlSUxhdmVOaV3/fYK5uWBkgSXJaRLr4+3A6g==", "integrity": "sha512-PxZwGNvH7Ak8WX5iXzoK1KPZttBXNPuaOvI2ZYU7NrlM+d9Ov+TUvlLOBNGzVXAntMSMMlJPd+jY6ovrVjSmUw==",
"funding": [ "funding": [
{ {
"type": "opencollective", "type": "opencollective",
@@ -13491,9 +13491,9 @@
} }
}, },
"node_modules/qs": { "node_modules/qs": {
"version": "6.14.0", "version": "6.14.1",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.1.tgz",
"integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", "integrity": "sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"dependencies": { "dependencies": {
"side-channel": "^1.1.0" "side-channel": "^1.1.0"
+1 -1
View File
@@ -95,7 +95,7 @@ class BCHJS {
} else if (process.env.BCHJSBCHSERVERURL && process.env.BCHJSBCHSERVERURL !== '') { } else if (process.env.BCHJSBCHSERVERURL && process.env.BCHJSBCHSERVERURL !== '') {
this.bchServerURL = process.env.BCHJSBCHSERVERURL this.bchServerURL = process.env.BCHJSBCHSERVERURL
} else { } else {
this.bchServerURL = 'https://bch.fullstack.cash/v6/' this.bchServerURL = 'https://bch.fullstack.cash/v6'
} }
const libConfig = { const libConfig = {
+3 -3
View File
@@ -21,7 +21,7 @@ describe('#X402 Integration', () => {
assert.strictEqual(bchjs.wif, '') assert.strictEqual(bchjs.wif, '')
assert.strictEqual(bchjs.paymentAmountSats, 10000) assert.strictEqual(bchjs.paymentAmountSats, 10000)
assert.strictEqual(bchjs.bchServerURL, 'https://bch.fullstack.cash/v6/') assert.strictEqual(bchjs.bchServerURL, 'https://bch.fullstack.cash/v6')
}) })
it('should accept wif in config', () => { it('should accept wif in config', () => {
@@ -60,7 +60,7 @@ describe('#X402 Integration', () => {
assert.strictEqual(bchjs.wif, '') assert.strictEqual(bchjs.wif, '')
assert.strictEqual(bchjs.paymentAmountSats, 10000) assert.strictEqual(bchjs.paymentAmountSats, 10000)
assert.strictEqual(bchjs.bchServerURL, 'https://bch.fullstack.cash/v6/') assert.strictEqual(bchjs.bchServerURL, 'https://bch.fullstack.cash/v6')
}) })
it('should read WIF from BCHJSWIF environment variable', () => { it('should read WIF from BCHJSWIF environment variable', () => {
@@ -168,7 +168,7 @@ describe('#X402 Integration', () => {
}) })
assert.strictEqual(bchjs.restURL, customRestURL) assert.strictEqual(bchjs.restURL, customRestURL)
assert.strictEqual(bchjs.bchServerURL, 'https://bch.fullstack.cash/v6/') assert.strictEqual(bchjs.bchServerURL, 'https://bch.fullstack.cash/v6')
}) })
}) })