Commit 3ebc84a2 authored by tom's avatar tom

fix tests

parent 12689343
......@@ -187,7 +187,7 @@ export const RESOURCES = {
path: '/api/v2/addresses/:hash/token-transfers',
pathParams: [ 'hash' as const ],
paginationFields: [ 'block_number' as const, 'items_count' as const, 'index' as const, 'transaction_index' as const ],
filterFields: [ 'filter' as const, 'type' as const, 'token_hash' as const ],
filterFields: [ 'filter' as const, 'type' as const, 'token' as const ],
},
address_blocks_validated: {
path: '/api/v2/addresses/:hash/blocks-validated',
......
......@@ -83,7 +83,7 @@ export interface AddressTokenTransferResponse {
export type AddressTokenTransferFilters = {
filter?: AddressFromToFilter;
type?: Array<TokenType>;
token_hash?: string;
token?: string;
}
export type AddressTokensFilter = {
......
......@@ -9,7 +9,7 @@ import buildApiUrl from 'playwright/utils/buildApiUrl';
import AddressTokenTransfers from './AddressTokenTransfers';
const API_URL = buildApiUrl('address_token_transfers', { hash: '0xd789a607CEac2f0E14867de4EB15b15C9FFB5859' }) +
'?token_hash=0x1189a607CEac2f0E14867de4EB15b15C9FFB5859';
'?token=0x1189a607CEac2f0E14867de4EB15b15C9FFB5859';
const hooksConfig = {
router: {
......
......@@ -88,7 +88,7 @@ const AddressTokenTransfers = ({ scrollRef }: {scrollRef?: React.RefObject<HTMLD
const { isError, isLoading, data, pagination, onFilterChange, isPaginationVisible } = useQueryWithPages({
resourceName: 'address_token_transfers',
pathParams: { hash: currentAddress },
filters: tokenFilter ? { token_hash: tokenFilter } : filters,
filters: tokenFilter ? { token: tokenFilter } : filters,
scrollRef,
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment