update dependencies

This commit is contained in:
poma 2019-11-10 04:03:46 +03:00
parent 8af8f46212
commit 4210a81536
3 changed files with 1541 additions and 3400 deletions

View File

@ -100,8 +100,9 @@ app.post('/relay', async (req, resp) => {
if (!isKnownRoot) { if (!isKnownRoot) {
return resp.status(400).json({ error: 'The merkle root is too old or invalid.' }) return resp.status(400).json({ error: 'The merkle root is too old or invalid.' })
} }
const gas = await mixer.methods.withdraw(proof, ...publicSignals).estimateGas({ value: args.refund }) const gas = await mixer.methods.withdraw(proof, ...publicSignals).estimateGas({ from: web3.eth.defaultAccount, value: args.refund })
const result = mixer.methods.withdraw(proof, ...publicSignals).send({ const result = mixer.methods.withdraw(proof, ...publicSignals).send({
from: web3.eth.defaultAccount,
value: args.refund, value: args.refund,
gas: numberToHex(gas + 50000), gas: numberToHex(gas + 50000),
gasPrice: toHex(toWei(gasPrices.fast.toString(), 'gwei')), gasPrice: toHex(toWei(gasPrices.fast.toString(), 'gwei')),

4930
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,13 +11,13 @@
"author": "Alexey Pertsev <alexey@peppersec.com> (https://peppersec.com)", "author": "Alexey Pertsev <alexey@peppersec.com> (https://peppersec.com)",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"dotenv": "^8.0.0", "dotenv": "^8.2.0",
"express": "^4.17.1", "express": "^4.17.1",
"node-fetch": "^2.6.0", "node-fetch": "^2.6.0",
"web3": "^1.0.0-beta.55", "web3": "^1.2.2",
"web3-utils": "^1.0.0" "web3-utils": "^1.2.2"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^6.0.1" "eslint": "^6.6.0"
} }
} }