question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: connector.signPersonalMessage is not a function

See original GitHub issue

Hi, 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:open
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
carlosdpcommented, Aug 11, 2021

I published this branch to @carlosdp/react-native-dapp in the mean time, for anyone who needs it.

2reactions
carlosdpcommented, Aug 9, 2021
Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found