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;
|
return;
|
||||||
|
|
||||||
case 'personal_sign':
|
case 'eth_sign':
|
||||||
const data = payload.params[0];
|
const data = payload.params[1];
|
||||||
try {
|
try {
|
||||||
if (_.isUndefined(data)) {
|
if (_.isUndefined(data)) {
|
||||||
throw new Error(LedgerSubproviderErrors.DataMissingForSignPersonalMessage);
|
throw new Error(LedgerSubproviderErrors.DataMissingForSignPersonalMessage);
|
||||||
|
|||||||
Reference in New Issue
Block a user