Skip to content

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

Closed
wants to merge 1 commit into from

Conversation

hrishikeshjain
Copy link
Contributor

TICKET: COIN-4153


// 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

The hard-coded value "v2x0d947c90444c311cf81c7692b88ac6767c349e44f47b6e854f7a8d9594487b43" is used as
authorization header
.
feeInfo: any;
}

async function getWalletInfo(): Promise<WalletInfo> {

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused function getWalletInfo.

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.

Suggested changeset 1
examples/ts/trx/consolidate-bitgo-express.ts

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/examples/ts/trx/consolidate-bitgo-express.ts b/examples/ts/trx/consolidate-bitgo-express.ts
--- a/examples/ts/trx/consolidate-bitgo-express.ts
+++ b/examples/ts/trx/consolidate-bitgo-express.ts
@@ -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;
-  }
-}
+
 
EOF
@@ -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;
}
}


Copilot is powered by AI and may make mistakes. Always verify output.
@@ -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

The hard-coded value "v2x0d947c90444c311cf81c7692b88ac6767c349e44f47b6e854f7a8d9594487b43" is used as
authorization header
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant