Skip to content

Commit

Permalink
Merge pull request #67 from SimpleHold/1.26.8
Browse files Browse the repository at this point in the history
refactor: balance and history request
  • Loading branch information
Dylan-Simplehold authored Apr 6, 2023
2 parents 36eec9a + 059a9f0 commit b78b9a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "extension",
"version": "1.26.7",
"version": "1.26.8",
"description": "extension",
"private": false,
"repository": "https://github.com/SimpleHold/extension.git",
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "SimpleHold",
"version": "1.26.7",
"version": "1.26.8",
"icons": {
"16": "favicon-16.png",
"32": "favicon-32.png",
Expand Down
12 changes: 6 additions & 6 deletions src/utils/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ export const fetchBalances = async (
wallets: TGetBalancesWalletProps[]
): Promise<IGetBalances[]> => {
const request = await sendRequest<IGetBalances[]>({
url: `${config.serverUrl}/wallet/balances-extension`,
url: `${config.serverUrl}/wallet/balances`,
method: 'POST',
data: {
wallets,
hash: await getHash(),
// hash: await getHash(),
},
timeout: 120000,
timeout: 180000,
})

return request || []
Expand Down Expand Up @@ -259,13 +259,13 @@ export const getWarning = async (symbol: string, chain?: string): Promise<string

export const fetchFullTxHistory = async (wallets: TTxWallet[]): Promise<TFullTxWallet[]> => {
const request = await sendRequest<TFullTxWallet[]>({
url: `${config.serverUrl}/transaction/transactions-full-info-extension`,
url: `${config.serverUrl}/transaction/transactions-full-info`,
method: 'POST',
data: {
wallets,
hash: await getHash(),
// hash: await getHash(),
},
timeout: 120000,
timeout: 240000,
})

return request || []
Expand Down

0 comments on commit b78b9a5

Please sign in to comment.