@@ -3,7 +3,7 @@ import { useBlobstreamURL } from "@/services/config"
33
44export const fetchNetworks = async ( ) => {
55 try {
6- const url = new URL ( `${ useBlobstreamURL } /network` )
6+ const url = new URL ( `${ useBlobstreamURL ( ) } /network` )
77
88 const data = await useFetch ( url . href )
99 return data
@@ -14,7 +14,7 @@ export const fetchNetworks = async () => {
1414
1515export const fetchCommitments = async ( { limit, offset, sort } ) => {
1616 try {
17- const url = new URL ( `${ useBlobstreamURL } /commitments` )
17+ const url = new URL ( `${ useBlobstreamURL ( ) } /commitments` )
1818
1919 if ( limit ) url . searchParams . append ( "limit" , limit )
2020 if ( offset ) url . searchParams . append ( "offset" , offset )
@@ -29,7 +29,7 @@ export const fetchCommitments = async ({ limit, offset, sort }) => {
2929
3030export const fetchCommitmentsByNetwork = async ( { network, limit, offset, sort } ) => {
3131 try {
32- const url = new URL ( `${ useBlobstreamURL } /network/${ network } /commitments` )
32+ const url = new URL ( `${ useBlobstreamURL ( ) } /network/${ network } /commitments` )
3333
3434 if ( limit ) url . searchParams . append ( "limit" , limit )
3535 if ( offset ) url . searchParams . append ( "offset" , offset )
@@ -44,7 +44,7 @@ export const fetchCommitmentsByNetwork = async ({ network, limit, offset, sort }
4444
4545export const fetchContracts = async ( address ) => {
4646 try {
47- const url = new URL ( `${ useBlobstreamURL } /contracts` )
47+ const url = new URL ( `${ useBlobstreamURL ( ) } /contracts` )
4848
4949 if ( address ) url + `/${ address } `
5050
0 commit comments