Merge pull request #77 from waku-org/eth-pm-deps-upgrade

This commit is contained in:
fryorcraken.eth 2022-08-29 17:12:37 +10:00 committed by GitHub
commit fcaf17d953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 248 additions and 260 deletions

View File

@ -10,10 +10,10 @@
"@material-ui/icons": "^4.11.2",
"ethers": "5.7.0",
"fontsource-roboto": "^4.0.0",
"js-waku": "0.24.0-cdd0752",
"protobufjs": "^6.11.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"js-waku": "0.24.0-aa40959",
"protobufjs": "^7.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"uint8arrays": "^3.1.0"
},
"scripts": {
@ -52,13 +52,13 @@
"@ethersproject/shims": "^5.5.0",
"@types/jest": "^27.4.0",
"@types/node": "^17.0.19",
"@types/react": "^17.0.39",
"@types/react-dom": "^17.0.11",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"cspell": "^6.0.0",
"eslint": "^8.9.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"react-scripts": "5.0.0",
"react-scripts": "5.0.1",
"typescript": "^4.5.5"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -108,7 +108,7 @@ export function validatePublicKeyMessage(msg: PublicKeyMessage): boolean {
console.log("Recovered", recovered);
console.log("ethAddress", "0x" + utils.bytesToHex(msg.ethAddress));
return equals(utils.hexToBytes(recovered.toLowerCase()), msg.ethAddress);
return equals(utils.hexToBytes(recovered), msg.ethAddress);
} catch (e) {
console.error("Could not recover public key from signature", e);
return false;