Skip to content

Commit

Permalink
ALL-7310 - Fix Kadena RPC double slash (#1106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hathoriel authored Jun 3, 2024
1 parent 1cb0fcd commit 12bc802
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [4.2.31] - 2024.6.3

### Fixed

- Fix Kadena rpc double slash

## [4.2.30] - 2024.5.31

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tatumio/tatum",
"version": "4.2.30",
"version": "4.2.31",
"description": "Tatum JS SDK",
"author": "Tatum",
"repository": "https://github.com/tatumio/tatum-js",
Expand Down
2 changes: 1 addition & 1 deletion src/e2e/rpc/other/tatum.rpc.kadena.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const networks = [
},
]

describe.skip('Kadena', () => {
describe('Kadena', () => {
networks.forEach(({ isTestnet, network, blockHash, lower, upper }) => {
describe(`${isTestnet ? 'Testnet' : 'Mainnet'}`, () => {
it('getInfo', async () => {
Expand Down
4 changes: 2 additions & 2 deletions src/service/rpc/other/AbstractKadenaRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export abstract class AbstractKadenaRpc implements KadenaRpcInterface {

private urlWithPrefix({ apiVersion, chain, nodeVersion }: Partial<NetworkParams>): string {
if (chain) {
return `chainweb/${apiVersion}/${nodeVersion}/chain/${chain}/`
return `/chainweb/${apiVersion}/${nodeVersion}/chain/${chain}`
}
return `chainweb/${apiVersion}/${nodeVersion}/`
return `/chainweb/${apiVersion}/${nodeVersion}`
}

private prepareRequest({ path, body, queryParams, network }: RequestI): PostI {
Expand Down

0 comments on commit 12bc802

Please sign in to comment.