Skip to content

Commit

Permalink
Merge pull request ping-pub#503 from sxlmnwb/master
Browse files Browse the repository at this point in the history
regex: enable consensus dumpurl on old code
  • Loading branch information
liangping authored Sep 9, 2023
2 parents d9a07b2 + 4945f69 commit 4a2e1b8
Show file tree
Hide file tree
Showing 3 changed files with 2,098 additions and 2,138 deletions.
2 changes: 2 additions & 0 deletions auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ declare global {
const useArrayFilter: typeof import('@vueuse/core')['useArrayFilter']
const useArrayFind: typeof import('@vueuse/core')['useArrayFind']
const useArrayFindIndex: typeof import('@vueuse/core')['useArrayFindIndex']
const useArrayFindLast: typeof import('@vueuse/core')['useArrayFindLast']
const useArrayJoin: typeof import('@vueuse/core')['useArrayJoin']
const useArrayMap: typeof import('@vueuse/core')['useArrayMap']
const useArrayReduce: typeof import('@vueuse/core')['useArrayReduce']
Expand Down Expand Up @@ -423,6 +424,7 @@ declare module 'vue' {
readonly useArrayFilter: UnwrapRef<typeof import('@vueuse/core')['useArrayFilter']>
readonly useArrayFind: UnwrapRef<typeof import('@vueuse/core')['useArrayFind']>
readonly useArrayFindIndex: UnwrapRef<typeof import('@vueuse/core')['useArrayFindIndex']>
readonly useArrayFindLast: UnwrapRef<typeof import('@vueuse/core')['useArrayFindLast']>
readonly useArrayJoin: UnwrapRef<typeof import('@vueuse/core')['useArrayJoin']>
readonly useArrayMap: UnwrapRef<typeof import('@vueuse/core')['useArrayMap']>
readonly useArrayReduce: UnwrapRef<typeof import('@vueuse/core')['useArrayReduce']>
Expand Down
4 changes: 2 additions & 2 deletions src/modules/[chain]/consensus/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ async function onChange () {
}
async function fetchPosition() {
// let dumpurl = rpc.value.replace('consensus_state', 'dump_consensus_state');
let dumpurl = rpc.value.replace('consensus_state', 'dump_consensus_state');
try {
const response = await fetch(rpc.value);
const response = await fetch(dumpurl);
if (!response.ok) {
throw new Error(`HTTP error: ${response.status}`);
}
Expand Down
Loading

0 comments on commit 4a2e1b8

Please sign in to comment.