TypeError: connector.signPersonalMessage is not a function
See original GitHub issueHi, I’m trying to sign a message, and after executing connect, the following is executed:
const message = "test message";
const hexMsg = convertUtf8ToHex(message);
const msgParams = [hexMsg, accounts[0]];
connector.signPersonalMessage(msgParams).then(
function (result) {
console.log("sign result:", result)
}
)
However, the following error occurs:
TypeError: connector.signPersonalMessage is not a function. (In 'connector.signPersonalMessage(msgParams)', 'connector.signPersonalMessage' is undefined)
This is also the case with some other functions in connector, but connect function appears to be functional (I get accounts, chainId, etc. back).
Any help is much appreciated. Thanks.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Connector.off() is not a function #227 - Uniswap/web3-react
We will receive a connector.off() error. The library code alludes that this shouldn't be possible as it guards for a connector object to...
Read more >javascript - How to do 'signTransaction' after authenticated by ...
The connector.signTransaction(txObj) open the wallet app but not prompted me to confirm. I am just confused and nothing get help me.
Read more >react native walletconnect | The AI Search Engine You Control
The connector.signTransaction(txObj) open the wallet app but not prompted me to confirm. I am just confused and nothing get help me. Please help ......
Read more >Uncaught TypeError: web3.personal.sign is not a function ...
I'm running Metamask on Chrome. When I run the following in the developer console on a random page or even Etherdelta Metamask prompts...
Read more >MetaMask - Bountysource
TypeError : source.setEngine is not a function $ 0. Created 2 years ago in MetaMask/web3-provider-engine with 0 comments.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I published this branch to
@carlosdp/react-native-dapp
in the mean time, for anyone who needs it.Made a fix PR here: https://github.com/WalletConnect/walletconnect-monorepo/pull/575