Skip to content

Commit

Permalink
Merge pull request #39 from near-examples/fix-frontend
Browse files Browse the repository at this point in the history
fix frontend login
  • Loading branch information
garikbesson authored Sep 16, 2024
2 parents 57240ea + 1e25df1 commit 578ad9a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"@ethereumjs/common": "^4.3.0",
"@ethereumjs/tx": "^5.3.0",
"@ethereumjs/util": "^9.0.3",
"@near-wallet-selector/core": "^8.9.10",
"@near-wallet-selector/here-wallet": "^8.9.10",
"@near-wallet-selector/meteor-wallet": "^8.9.10",
"@near-wallet-selector/modal-ui": "^8.9.10",
"@near-wallet-selector/my-near-wallet": "^8.9.10",
"@near-wallet-selector/bitte-wallet": "^8.9.10",
"@near-wallet-selector/core": "^8.9.13",
"@near-wallet-selector/here-wallet": "^8.9.13",
"@near-wallet-selector/meteor-wallet": "^8.9.13",
"@near-wallet-selector/modal-ui": "^8.9.13",
"@near-wallet-selector/my-near-wallet": "^8.9.13",
"@near-wallet-selector/bitte-wallet": "^8.9.13",
"@vitejs/plugin-react": "^4.2.1",
"axios": "^1.6.8",
"bitcoinjs-lib": "^6.1.5",
Expand All @@ -29,7 +29,7 @@
"hash.js": "^1.1.7",
"js-sha3": "^0.9.3",
"keccak": "^3.0.4",
"near-api-js": "^3.0.4",
"near-api-js": "^5.0.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -39,7 +39,7 @@
"web3": "^4.6.0"
},
"overrides": {
"near-api-js": "^3.0.4"
"near-api-js": "^5.0.0"
},
"devDependencies": {
"@types/react": "^18.2.64",
Expand Down
2 changes: 1 addition & 1 deletion src/services/ethereum.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class Ethereum {
sessionStorage.setItem('derivation', path);

const payload = Array.from(ethPayload);
const { big_r, s, recovery_id } = await wallet.callMethod({ contractId, method: 'sign', args: { request: { payload, path, key_version: 0 } }, gas: '250000000000000', deposit: parseNearAmount('0.05') });
const { big_r, s, recovery_id } = await wallet.callMethod({ contractId, method: 'sign', args: { request: { payload, path, key_version: 0 } }, gas: '250000000000000', deposit: parseNearAmount('0.25') });
return { big_r, s, recovery_id };
}

Expand Down

0 comments on commit 578ad9a

Please sign in to comment.