fix(@embark/cockpit): ensure correct data is send to web3's `ecRecover` (#2024)

We've introduced a regression in https://github.com/embark-framework/embark/commit/f9557d4c9 where invalid data
has been sent to web3's `ecRecover()` method to verify signed messages.

This causes an internal server error and the utility feature inside Cockpit
unsuable.

This commit ensures that the correct data is sent to `ecRecover()` making verifying
messages through Cockpit functional again.
This commit is contained in:
Pascal Precht 2019-11-05 16:21:43 +01:00 committed by Iuri Matias
parent 08be5e40fc
commit abe79c87f4
1 changed files with 1 additions and 1 deletions

View File

@ -407,6 +407,6 @@ export default class EthereumAPI {
} }
async verifyMessage(message, signature) { async verifyMessage(message, signature) {
return this.web3.eth.personal.ecRecover(signature.message, signature.signature); return this.web3.eth.personal.ecRecover(message, signature);
} }
} }