Fix getAddress endpoint url.

This commit is contained in:
Miguel Medeiros 2021-05-31 20:02:16 -03:00
parent 112e54ae57
commit b3606e46c1

View File

@ -3,7 +3,7 @@ import { Address, AddressesInstance } from '../../interfaces/bisq/addresses';
export const useAddresses = (api: AxiosInstance): AddressesInstance => {
const getAddress = async (params: { address: string }) => {
const { data } = await api.get<Address>(`/block/${params.address}`);
const { data } = await api.get<Address>(`/address/${params.address}`);
return data;
};