Error when trying to Sign Message

Using the example from web3auth-pnp-examples/web-modal-sdk/evm/commonjs-evm-modal-example at main · Web3Auth/web3auth-pnp-examples · GitHub I am getting the following error when trying to sign a message (via ethers): Expected message to be an Uint8Array with length 32 Thoughts?

Other functions work without error. (for the send txn function, I had to comment out the gas keys from the txn object, after that it worked). But signMessage gives this error…

Hey mark, you will need to hash the message first and then convert it to Uint8Array before passing to the signMessage function. We will correct the example as well as you pointed thanks.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.