Update subprovider to catch correct RPC method

ZeroEx uses web3.eth.sign, rather than web3.eth.personal.sign. In addition, the message to sign is the second parameter; not the first. The first parameter is the address.
This commit is contained in:
Cavan Flynn
2017-12-27 19:48:58 -05:00
committed by GitHub
parent 69806c8839
commit 6ea8cee551

View File

@@ -106,8 +106,8 @@ export class LedgerSubprovider extends Subprovider {
}
return;
case 'personal_sign':
const data = payload.params[0];
case 'eth_sign':
const data = payload.params[1];
try {
if (_.isUndefined(data)) {
throw new Error(LedgerSubproviderErrors.DataMissingForSignPersonalMessage);