Skip to content

Commit

Permalink
Update rlp, rxjs, socket.io packages
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Feb 3, 2022
1 parent c223ecc commit 74711e7
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 105 deletions.
204 changes: 105 additions & 99 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"lodash-es": "^4.17.21",
"normalize.css": "^8.0.1",
"register-service-worker": "^1.7.2",
"rlp": "^2.2.6",
"rxjs": "^6.5.5",
"rxjs-etc": "^9.7.4",
"socket.io-client": "^2.3.0",
"rlp": "^3.0.0",
"rxjs": "^7.5.2",
"rxjs-etc": "^10.6.2",
"socket.io-client": "^2.4.0",
"vee-validate": "^2.2.15",
"vue": "^2.6.14",
"vue-clickaway": "^2.2.2",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/airGap.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ const urlToPayload = (urlBroken, expectedMessageType) => {
export const getPublicKeyByResponseUrl = (url) => {
const [, , publicKey] = urlToPayload(url, 4);
if (publicKey.length !== 64) throw new Error('Invalid public key length');
return publicKey.toString();
return Buffer.from(Buffer.from(publicKey).toString(), 'hex');
};

export const getSignedTransactionByResponseUrl = (url) => {
const [, signedTx] = urlToPayload(url, 6);
return signedTx.toString();
return Buffer.from(signedTx).toString();
};

export const generateSignRequestUrl = (networkId, transaction, publicKey) => {
Expand Down

0 comments on commit 74711e7

Please sign in to comment.