Skip to content

Commit

Permalink
style(rgbpp): change the name of the function
Browse files Browse the repository at this point in the history
  • Loading branch information
Daryl-L committed Aug 27, 2024
1 parent 1c7183b commit 9e4df1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/Address/BTCAddressComp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const BTCAddressOverviewCard: FC<{ address: Address }> = ({ address }) =>
const { boundLiveCellsCount, unboundLiveCellsCount } = data || { boundLiveCellsCount: 0, unboundLiveCellsCount: 0 }

let { data: udtAccounts } = useQuery(['bitcoin address udt accounts', address], async () => {
const data = await explorerService.api.fetchBitcoinAddressesUDTAccounts(address.bitcoinAddressHash || '')
const data = await explorerService.api.fetchUDTAccountsByBtcAddress(address.bitcoinAddressHash || '')
return data.udtAccounts
})
udtAccounts = udtAccounts || []
Expand Down
2 changes: 1 addition & 1 deletion src/services/ExplorerService/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export const apiFetcher = {
fetchBitcoinAddresses: (address: string) =>
requesterV2.get(`bitcoin_addresses/${address}`).then(res => toCamelcase<BitcoinAddresses>(res.data)),

fetchBitcoinAddressesUDTAccounts: (address: string) =>
fetchUDTAccountsByBtcAddress: (address: string) =>
requesterV2
.get(`bitcoin_addresses/${address}/udt_accounts`)
.then(res => toCamelcase<{ udtAccounts: UDTAccount[] }>(res.data.data)),
Expand Down

0 comments on commit 9e4df1b

Please sign in to comment.