Skip to content

Conversation

@ganchoradkov
Copy link
Member

@ganchoradkov ganchoradkov commented Dec 9, 2025

This PR fixes a bug in the BIP122 signMessage method where incorrect address references were being used. The fix ensures the method uses the correct address parameter passed to the function, aligning with the pattern used by other BIP122 methods.

Key changes:

  • Removed broken logic that referenced an out-of-scope accounts[0] variable
  • Changed the account parameter from using getAddressFromAccount(accounts[0]) to using the function's address parameter
  • Simplified the address parameter to always use the function's address parameter instead of conditional logic

Copilot AI review requested due to automatic review settings December 9, 2025 08:43
@vercel
Copy link

vercel bot commented Dec 9, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
decentralized-relay-app Error Error Dec 9, 2025 8:45am
malicious-dapp-verify-simulation Ready Ready Preview Comment Dec 9, 2025 8:45am
pos-dapp Ready Ready Preview Comment Dec 9, 2025 8:45am
react-dapp-v2 Ready Ready Preview Comment Dec 9, 2025 8:45am
wallet-pay-dapp Error Error Dec 9, 2025 8:45am
8 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
appkit-react-wagmi-example Ignored Ignored Dec 9, 2025 8:45am
appkit-solana Ignored Ignored Dec 9, 2025 8:45am
chain-abstraction-demo Ignored Ignored Preview Dec 9, 2025 8:45am
decentralized-relay-wallet Ignored Ignored Preview Dec 9, 2025 8:45am
react-dapp-v2-cosmos-provider Ignored Ignored Preview Dec 9, 2025 8:45am
react-dapp-v2-with-ethers Ignored Ignored Preview Dec 9, 2025 8:45am
react-wallet-v2 Ignored Ignored Preview Comment Dec 9, 2025 8:45am
smart-sessions-demo Ignored Ignored Dec 9, 2025 8:45am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in the BIP122 signMessage method where incorrect address references were being used. The fix ensures the method uses the correct address parameter passed to the function, aligning with the pattern used by other BIP122 methods.

Key changes:

  • Removed broken logic that referenced an out-of-scope accounts[0] variable
  • Changed the account parameter from using getAddressFromAccount(accounts[0]) to using the function's address parameter
  • Simplified the address parameter to always use the function's address parameter instead of conditional logic

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ganchoradkov ganchoradkov merged commit 4bf1528 into main Dec 9, 2025
21 of 23 checks passed
@ganchoradkov ganchoradkov deleted the fix/bip122-signMessage branch December 9, 2025 08:48
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.

2 participants