Skip to content

Commit 686ba60

Browse files
authored
Merge pull request #41 from gavinharris-dev/patch-1
Policy Info endpoint URL fixed
2 parents 07d6b8f + e89dce1 commit 686ba60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/assets/helpers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ export const AssetsApiAxiosParamCreator = (configuration: Configuration) => ({
368368
): RequestArgs => {
369369
// verify required parameter 'policy' is not null or undefined
370370
assertParamExists('policyInfo', 'policy', policy);
371-
const localVarPath = `/assets/policy/{policy}`.replace(`{${'policy'}}`, encodeURIComponent(String(policy)));
371+
const localVarPath = `/policy/{policy}/assets`.replace(`{${'policy'}}`, encodeURIComponent(String(policy)));
372372
// use dummy base URL string because the URL constructor only accepts absolute URLs.
373373
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
374374
const { baseOptions } = configuration;
@@ -407,7 +407,7 @@ export const AssetsApiAxiosParamCreator = (configuration: Configuration) => ({
407407
): RequestArgs => {
408408
// verify required parameter 'policy' is not null or undefined
409409
assertParamExists('policyTxs', 'policy', policy);
410-
const localVarPath = `/assets/policy/{policy}/txs`.replace(`{${'policy'}}`, encodeURIComponent(String(policy)));
410+
const localVarPath = `/policy/{policy}/txs`.replace(`{${'policy'}}`, encodeURIComponent(String(policy)));
411411
// use dummy base URL string because the URL constructor only accepts absolute URLs.
412412
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
413413
const { baseOptions } = configuration;
@@ -446,7 +446,7 @@ export const AssetsApiAxiosParamCreator = (configuration: Configuration) => ({
446446
): RequestArgs => {
447447
// verify required parameter 'policy' is not null or undefined
448448
assertParamExists('policyUtxos', 'policy', policy);
449-
const localVarPath = `/assets/policy/{policy}/utxos`.replace(
449+
const localVarPath = `/policy/{policy}/utxos`.replace(
450450
`{${'policy'}}`,
451451
encodeURIComponent(String(policy)),
452452
);

0 commit comments

Comments
 (0)