Skip to content

Commit

Permalink
Merge pull request #41 from gavinharris-dev/patch-1
Browse files Browse the repository at this point in the history
Policy Info endpoint URL fixed
  • Loading branch information
Vardominator authored Mar 17, 2024
2 parents 07d6b8f + e89dce1 commit 686ba60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/assets/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export const AssetsApiAxiosParamCreator = (configuration: Configuration) => ({
): RequestArgs => {
// verify required parameter 'policy' is not null or undefined
assertParamExists('policyInfo', 'policy', policy);
const localVarPath = `/assets/policy/{policy}`.replace(`{${'policy'}}`, encodeURIComponent(String(policy)));
const localVarPath = `/policy/{policy}/assets`.replace(`{${'policy'}}`, encodeURIComponent(String(policy)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
const { baseOptions } = configuration;
Expand Down Expand Up @@ -407,7 +407,7 @@ export const AssetsApiAxiosParamCreator = (configuration: Configuration) => ({
): RequestArgs => {
// verify required parameter 'policy' is not null or undefined
assertParamExists('policyTxs', 'policy', policy);
const localVarPath = `/assets/policy/{policy}/txs`.replace(`{${'policy'}}`, encodeURIComponent(String(policy)));
const localVarPath = `/policy/{policy}/txs`.replace(`{${'policy'}}`, encodeURIComponent(String(policy)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
const { baseOptions } = configuration;
Expand Down Expand Up @@ -446,7 +446,7 @@ export const AssetsApiAxiosParamCreator = (configuration: Configuration) => ({
): RequestArgs => {
// verify required parameter 'policy' is not null or undefined
assertParamExists('policyUtxos', 'policy', policy);
const localVarPath = `/assets/policy/{policy}/utxos`.replace(
const localVarPath = `/policy/{policy}/utxos`.replace(
`{${'policy'}}`,
encodeURIComponent(String(policy)),
);
Expand Down

0 comments on commit 686ba60

Please sign in to comment.