Skip to content

Commit

Permalink
Merge pull request #493 from onflow/flow-transfers
Browse files Browse the repository at this point in the history
flow transfers
  • Loading branch information
nialexsan authored Feb 11, 2025
2 parents b086036 + 1060a6e commit b7aef9b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions src/background/service/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ const dataConfig: Record<string, OpenApiConfigValue> = {
params: ['transaction', 'message'],
},
get_transfers: {
path: '/v1/account/transfers',
path: '/api/v1/account/transfers',
method: 'get',
params: ['address', 'after', 'limit'],
},
Expand Down Expand Up @@ -1245,11 +1245,17 @@ class OpenApiService {

getTransfers = async (address: string, after = '', limit: number) => {
const config = this.store.config.get_transfers;
const data = await this.sendRequest(config.method, config.path, {
address,
after,
limit,
});
const data = await this.sendRequest(
config.method,
config.path,
{
address,
after,
limit,
},
{},
WEB_NEXT_URL
);

return data;
};
Expand Down
2 changes: 1 addition & 1 deletion src/shared/test-data/api-test-results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8074,7 +8074,7 @@ export const createTestResults = (): ApiTestResults => ({
},
fetchDetails: [
{
url: `${INITIAL_OPENAPI_URL}/v1/account/transfers?address=0x2cdc100430551409&after=&limit=10`,
url: `${WEB_NEXT_URL}/api/v1/account/transfers?address=0x2cdc100430551409&after=&limit=10`,
params: {
address: '0x2cdc100430551409',
after: '',
Expand Down

0 comments on commit b7aef9b

Please sign in to comment.