mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2024-12-28 09:09:29 -05:00
update dependencies
This commit is contained in:
parent
8af8f46212
commit
4210a81536
3
index.js
3
index.js
@ -100,8 +100,9 @@ app.post('/relay', async (req, resp) => {
|
||||
if (!isKnownRoot) {
|
||||
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({
|
||||
from: web3.eth.defaultAccount,
|
||||
value: args.refund,
|
||||
gas: numberToHex(gas + 50000),
|
||||
gasPrice: toHex(toWei(gasPrices.fast.toString(), 'gwei')),
|
||||
|
4930
package-lock.json
generated
4930
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -11,13 +11,13 @@
|
||||
"author": "Alexey Pertsev <alexey@peppersec.com> (https://peppersec.com)",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"dotenv": "^8.0.0",
|
||||
"dotenv": "^8.2.0",
|
||||
"express": "^4.17.1",
|
||||
"node-fetch": "^2.6.0",
|
||||
"web3": "^1.0.0-beta.55",
|
||||
"web3-utils": "^1.0.0"
|
||||
"web3": "^1.2.2",
|
||||
"web3-utils": "^1.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^6.0.1"
|
||||
"eslint": "^6.6.0"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user