Change software version after fixing withdrawal bug that leads to revert if recipient is specific contract
This commit is contained in:
parent
8a7bb849cf
commit
8ebcfe6b55
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "relay",
|
"name": "relay",
|
||||||
"version": "4.1.5",
|
"version": "4.1.6",
|
||||||
"description": "Relayer for Tornado.cash privacy solution. https://tornado.cash",
|
"description": "Relayer for Tornado.cash privacy solution. https://tornado.cash",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"server": "node src/server.js",
|
"server": "node src/server.js",
|
||||||
|
@ -195,7 +195,6 @@ async function checkRecipient({ data }) {
|
|||||||
// Checks only for default withdrawals
|
// Checks only for default withdrawals
|
||||||
if (data.type !== jobType.TORNADO_WITHDRAW) return
|
if (data.type !== jobType.TORNADO_WITHDRAW) return
|
||||||
|
|
||||||
console.log(data.args)
|
|
||||||
const recipient = data.args[2]
|
const recipient = data.args[2]
|
||||||
if (!isAddress(recipient)) throw new Error('Recipient address is invalid')
|
if (!isAddress(recipient)) throw new Error('Recipient address is invalid')
|
||||||
|
|
||||||
@ -267,7 +266,7 @@ async function processJob(job) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function submitTx(job, retry = 0) {
|
async function submitTx(job, retry = 0) {
|
||||||
await checkRecipient(job);
|
await checkRecipient(job)
|
||||||
await checkFee(job)
|
await checkFee(job)
|
||||||
currentTx = await txManager.createTx(await getTxObject(job))
|
currentTx = await txManager.createTx(await getTxObject(job))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user