-
Notifications
You must be signed in to change notification settings - Fork 295
fix: correct trx:usd1 decimal places #6198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
// TODO: set your access token here | ||
// You can get this from User Settings > Developer Options > Add Access Token | ||
const accessToken = 'v2x0d947c90444c311cf81c7692b88ac6767c349e44f47b6e854f7a8d9594487b43'; |
Check failure
Code scanning / CodeQL
Hard-coded credentials Critical
authorization header
feeInfo: any; | ||
} | ||
|
||
async function getWalletInfo(): Promise<WalletInfo> { |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 25 days ago
To fix the issue, the unused function getWalletInfo
should be removed from the code. This will improve code readability and eliminate unnecessary computation. The removal involves deleting the function definition and any associated comments or code related to its functionality.
-
Copy modified line R56
@@ -55,13 +55,3 @@ | ||
|
||
async function getWalletInfo(): Promise<WalletInfo> { | ||
const url = `${BITGO_EXPRESS_URL}/api/v2/${coin}/wallet/${walletId}`; | ||
console.log(url); | ||
try { | ||
const response = await axios.get(url, requestOptions); | ||
return response.data; | ||
} catch (error) { | ||
console.error('Error getting wallet info:', error.response?.data || error.message); | ||
throw error; | ||
} | ||
} | ||
|
||
|
@@ -4,9 +4,9 @@ | |||
const LOCAL_EXTERNAL_SIGNER_URL = 'http://localhost:3080'; | |||
// TODO: set your access token here | |||
// You can get this from User Settings > Developer Options > Add Access Token | |||
const accessToken = ''; | |||
const accessToken = 'v2x0d947c90444c311cf81c7692b88ac6767c349e44f47b6e854f7a8d9594487b43'; |
Check failure
Code scanning / CodeQL
Hard-coded credentials Critical
TICKET: COIN-4153