Skip to content

feat(abstract-utxo): verify paygo #6445

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

christopher-fong
Copy link
Contributor

TICKET: BTC-2118

@@ -3,6 +3,7 @@
import BigNumber from 'bignumber.js';
import { BitGoBase } from '@bitgo/sdk-core';
import * as utxolib from '@bitgo/utxo-lib';
import * as utxocore from '@bitgo/utxo-core';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import utxocore.

Copilot Autofix

AI 3 days ago

To fix the issue, remove the unused import * as utxocore from '@bitgo/utxo-core'; statement from the file. This is the most straightforward and effective approach, as there is no reference to utxocore in the provided code snippet.


Suggested changeset 1
modules/abstract-utxo/src/transaction/fixedScript/verifyTransaction.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/modules/abstract-utxo/src/transaction/fixedScript/verifyTransaction.ts b/modules/abstract-utxo/src/transaction/fixedScript/verifyTransaction.ts
--- a/modules/abstract-utxo/src/transaction/fixedScript/verifyTransaction.ts
+++ b/modules/abstract-utxo/src/transaction/fixedScript/verifyTransaction.ts
@@ -3,7 +3,6 @@
 import BigNumber from 'bignumber.js';
 import { BitGoBase } from '@bitgo/sdk-core';
 import * as utxolib from '@bitgo/utxo-lib';
-import * as utxocore from '@bitgo/utxo-core';
 
 import { AbstractUtxoCoin, Output, ParsedTransaction, VerifyTransactionOptions } from '../../abstractUtxoCoin';
 import { verifyCustomChangeKeySignatures, verifyKeySignature, verifyUserPublicKey } from '../../verifyKey';
EOF
@@ -3,7 +3,6 @@
import BigNumber from 'bignumber.js';
import { BitGoBase } from '@bitgo/sdk-core';
import * as utxolib from '@bitgo/utxo-lib';
import * as utxocore from '@bitgo/utxo-core';

import { AbstractUtxoCoin, Output, ParsedTransaction, VerifyTransactionOptions } from '../../abstractUtxoCoin';
import { verifyCustomChangeKeySignatures, verifyKeySignature, verifyUserPublicKey } from '../../verifyKey';
Copilot is powered by AI and may make mistakes. Always verify output.
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