Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #770 from 3box/hotfix/address-message-recover-check
Browse files Browse the repository at this point in the history
Hotfix/address message recover check
  • Loading branch information
zachferland authored Apr 21, 2020
2 parents b755fb3 + 713ac86 commit d14d8e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Release Notes

## v1.18.1 - 2020-04-21
* fix: address recover signature check

## v1.18.0 - 2020-04-21
* feat: opt in support for [3ID Connect Provider](https://github.com/3box/3id-connect)
* fix: confidential threads support with IdentityWallet
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "3box",
"version": "1.18.0",
"version": "1.18.1",
"description": "Interact with user data",
"main": "lib/3box.js",
"directories": {
Expand Down
4 changes: 2 additions & 2 deletions src/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = {
const res = await callRpc(ethereum, method, params, fromAddress)

if (fromAddress) {
const recoveredAddr = verifyMessage(msg, res).toLowerCase()
const recoveredAddr = verifyMessage(text, res).toLowerCase()
if (fromAddress !== recoveredAddr) throw new Error('Provider returned signature from different account than requested')
}

Expand All @@ -75,7 +75,7 @@ module.exports = {
const res = await callRpc(ethereum, method, params, fromAddress)

if (fromAddress) {
const recoveredAddr = verifyMessage(msg, res).toLowerCase()
const recoveredAddr = verifyMessage(text, res).toLowerCase()
if (fromAddress !== recoveredAddr) throw new Error('Provider returned signature from different account than requested')
}

Expand Down

0 comments on commit d14d8e3

Please sign in to comment.