Skip to content

Commit

Permalink
Merge pull request #1266 from oasisprotocol/csillag/remove-pontusx-mock
Browse files Browse the repository at this point in the history
Don't mock PontusX data with Sapphire
  • Loading branch information
csillag authored Feb 16, 2024
2 parents aaf5ddd + 36b3eb9 commit 05e2339
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions .changelog/1266.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Don't mock PontusX data with Sapphire
9 changes: 0 additions & 9 deletions src/oasis-nexus/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,6 @@ function arrayify<T>(arrayOrItem: null | undefined | T | T[]): T[] {
return arrayOrItem
}

// TODO: remove when pontusx API is ready
axios.interceptors.request.use(config => {
// Mock pontusx
if (config.url?.includes('/v1/pontusx')) {
config.url = config.url.replace('/v1/pontusx', '/v1/sapphire')
}
return config
})

export const useGetConsensusTransactions: typeof generated.useGetConsensusTransactions = (
network,
params?,
Expand Down

0 comments on commit 05e2339

Please sign in to comment.