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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user