-
Notifications
You must be signed in to change notification settings - Fork 1.6k
DO NOT MERGE - BTC logs #5162
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
DO NOT MERGE - BTC logs #5162
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -308,10 +308,15 @@ export class BitcoinAdapter extends AdapterBlueprint<BitcoinConnector> { | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| ): Promise<AdapterBlueprint.SignMessageResult> { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| const connector = params.provider as BitcoinConnector | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| console.log('>> Bitcoin Adapter: Connector', connector) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if (!connector) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| throw new Error('BitcoinAdapter:signMessage - connector is undefined') | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| console.log('>> Bitcoin Adapter: Signing Message') | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| console.log('>> Bitcoin Adapter: Connector.signMessage', connector.signMessage) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+311
to
+319
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| console.log('>> Bitcoin Adapter: Connector', connector) | |
| if (!connector) { | |
| throw new Error('BitcoinAdapter:signMessage - connector is undefined') | |
| } | |
| console.log('>> Bitcoin Adapter: Signing Message') | |
| console.log('>> Bitcoin Adapter: Connector.signMessage', connector.signMessage) | |
| if (!connector) { | |
| throw new Error('BitcoinAdapter:signMessage - connector is undefined') | |
| } |
Copilot
AI
Oct 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug console.log statements should not be committed to production code. Consider using a proper logging framework or removing these statements before merging.
| console.log('>> Bitcoin Adapter: Connector', connector) | |
| if (!connector) { | |
| throw new Error('BitcoinAdapter:signMessage - connector is undefined') | |
| } | |
| console.log('>> Bitcoin Adapter: Signing Message') | |
| console.log('>> Bitcoin Adapter: Connector.signMessage', connector.signMessage) | |
| if (!connector) { | |
| throw new Error('BitcoinAdapter:signMessage - connector is undefined') | |
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -706,6 +706,7 @@ | |||||
| return ids.some(id => Boolean(window.ethereum?.[String(id)])) | ||||||
| }, | ||||||
| signMessage: async (message: string) => { | ||||||
| console.log('>> Signing Message') | ||||||
|
||||||
| const namespace = ChainController.state.activeChain | ||||||
| const adapter = this.getAdapter(ChainController.state.activeChain) | ||||||
|
|
||||||
|
|
@@ -717,12 +718,18 @@ | |||||
| throw new Error('signMessage: adapter not found') | ||||||
| } | ||||||
|
|
||||||
| console.log('>> Adapter', adapter) | ||||||
| console.log('>> Namespace', namespace) | ||||||
|
|
||||||
| const address = this.getAddress(namespace) | ||||||
| console.log('>> Address', address) | ||||||
|
||||||
| console.log('>> Address', address) | |
| LoggerUtil.debug('>> Address', address) |
Copilot
AI
Oct 6, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug console.log statements should not be committed to production code. Consider using a proper logging framework or removing these statements before merging.
| console.log('>> Provider', ProviderController.getProvider(namespace)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Bitcoin Adapter Contains Unnecessary Debug Logs
The
signMessagemethod in the Bitcoin adapter includes severalconsole.logdebugging statements. These appear to be temporary logs, as indicated by the PR title "DO NOT MERGE - BTC logs", and shouldn't be part of the final codebase.