Status-react: web3.personal.sign() not displaying message to sign and refusing password

Created on 14 May 2019  路  8Comments  路  Source: status-im/status-react

Problem

Same as described here (best matching issue I found, but closed a long time ago), plus the fact that entered password isn't accepted, in response to a web3.personal.sign("My message..", address, callback) call.
Works well in Metamask.

bug low-priority

All 8 comments

hey, thanks for the issue, could you please provide some code?

hey, thanks for the issue, could you please provide some code?

Sure. Here is a snipet :

ethereum.enable()
.then(function (accounts) {
  if (ethereum.isStatus) {
    web3 = new Web3(ethereum); // Here I inject web3.js API v0.20.6
  }
  web3.personal.sign(
    "This is a test msg to be signed.",
    accounts[0],
    function(err, sig) {
      if (sig != null) {
        console.log(sig);
      }
  });
});

Works well in a browser with Metamask.
In Status, it displays the signing screen, but message isn't displayed, and password isn't accepted ("wrong password" toast message) even with correct password.
Issue present in both normal and dev modes.
I use Status version 0.12.1 (status-go vv0.24.0-beta.1) and I run it on Android 9.

Here is a screenshot :
Screenshot_20190515-103129

thanks @FabioBonfiglio i'll take a look!

web3.currentProvider.sendAsync(
{method: "personal_sign",
 params: [web3.toHex(message) account[0]],
 from :  account[0]},
cb);

if you need a workaround for now

This workaround works and now the password is accepted and I'm able to sign the message.
However, in the case of a long content, message is truncated and only the last lines are displayed :

Screenshot_20190515-131405

@FabioBonfiglio you can scroll a message, but yes it's a bad UX, will be addressed in the new wallet UI soon

@FabioBonfiglio you can scroll a message, but yes it's a bad UX, will be addressed in the new wallet UI soon

Unable to scroll here.
Looking forward to the new UI then :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rachelhamlin picture rachelhamlin  路  3Comments

andmironov picture andmironov  路  3Comments

mfekadu picture mfekadu  路  3Comments

jarradh picture jarradh  路  4Comments

oskarth picture oskarth  路  4Comments