Skip to content

Commit 2e2f3a8

Browse files
committed
fix fetch constants
1 parent f51c3f3 commit 2e2f3a8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

services/api/main.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ export const fetchHead = async () => {
1010
}
1111
}
1212

13+
export const fetchConstants = async () => {
14+
try {
15+
return await $fetch(`${useServerURL()}/constants`)
16+
} catch (error) {
17+
console.error(error)
18+
}
19+
}
20+
1321
export const fetchMainnetConstants = async () => {
1422
try {
1523
return await $fetch(`https://api.celenium.io/v1/constants`)

0 commit comments

Comments
 (0)